summaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-05-27 16:09:39 +0200
committerFlorian Weimer <fweimer@redhat.com>2025-05-27 16:09:39 +0200
commita289cf711e0797ed8fe23a1222904fbb35560356 (patch)
tree04bc856bbb4e872241af50c9239a7e9a384ab284 /Makeconfig
parenta484b76cd7d094c2c82d8dbb7a1a2c0d3709d16a (diff)
Move C warning flags from +gccwarn to +gccwarn-c
This avoids warnings about these options during the C++ header inclusion tests. Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makeconfig b/Makeconfig
index fddd0329eb..1bb143e950 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -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.