]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move C warning flags from +gccwarn to +gccwarn-c
authorFlorian Weimer <fweimer@redhat.com>
Tue, 27 May 2025 14:09:39 +0000 (16:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 27 May 2025 14:09:39 +0000 (16:09 +0200)
This avoids warnings about these options during the C++ header
inclusion tests.

Reviewed-by: Sam James <sam@gentoo.org>
Makeconfig

index fddd0329eb5b92a8b1111644a5cda6dfcea1fb25..1bb143e950a06e75bf0d9cef634dacd189708689 100644 (file)
@@ -892,12 +892,12 @@ host-test-program-cmd = $(host-built-program-cmd)
 endif
 
 # Extra flags to pass to GCC.
-+gccwarn := -Wall -Wwrite-strings -Wundef $(cc-option-wimplicit-fallthrough) \
-  $(cc-option-wfree-labels) $(cc-option-wmissing-parameter-name)
++gccwarn := -Wall -Wwrite-strings -Wundef $(cc-option-wimplicit-fallthrough)
 ifeq ($(enable-werror),yes)
 +gccwarn += -Werror
 endif
-+gccwarn-c = -Wstrict-prototypes -Wold-style-definition
++gccwarn-c = -Wstrict-prototypes -Wold-style-definition \
+  $(cc-option-wfree-labels) $(cc-option-wmissing-parameter-name)
 
 # We do not depend on the address of constants in different files to be
 # actually different, so allow the compiler to merge them all.