On Tue, Jun 9, 2026 at 9:25 AM Ben Boeckel via Sourceware Forge
<[email protected]> wrote:
>
> From: Ben Boeckel <[email protected]>
>
> The initial P1689 patches were written in 2019 and ended up having code
> move around over time ended up introducing a `struct` keyword to the
> implementation of `cpp_finish`. Remove it to match the rest of the file
> and its declaration in the header.
>
> Fixes: 024f135a1e9 (p1689r5: initial support, 2023-09-01)
>
> Reported-by: Roland Illig <[email protected]>
>
> libcpp/
>
>         * init.cc (cpp_finish): Remove unnecessary `struct` keyword.

Ok.


> ---
>  libcpp/init.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libcpp/init.cc b/libcpp/init.cc
> index a480d1d4a26b..031170de38eb 100644
> --- a/libcpp/init.cc
> +++ b/libcpp/init.cc
> @@ -933,7 +933,7 @@ read_original_directory (cpp_reader *pfile)
>     Maybe it should also reset state, such that you could call
>     cpp_start_read with a new filename to restart processing.  */
>  void
> -cpp_finish (struct cpp_reader *pfile, FILE *deps_stream, FILE *fdeps_stream)
> +cpp_finish (cpp_reader *pfile, FILE *deps_stream, FILE *fdeps_stream)
>  {
>    /* Warn about unused macros before popping the final buffer.  */
>    if (CPP_OPTION (pfile, warn_unused_macros))
> --
> 2.54.0
>

Reply via email to