mirror of git://sourceware.org/git/glibc.git
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>
This commit is contained in:
parent
a484b76cd7
commit
a289cf711e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue