https://gcc.gnu.org/g:896be69c09cda1c2205c1b937f1a4e5abe602da4

commit r17-1545-g896be69c09cda1c2205c1b937f1a4e5abe602da4
Author: Ben Boeckel <[email protected]>
Date:   Mon Apr 1 22:14:44 2024 -0400

    libcpp/init: remove unnecessary `struct` keyword
    
    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.

Diff:
---
 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))

Reply via email to