Add -Wno-unused to --warning-mode=pedantic, otherwise sql/ compilation
generated so many warnings that the mode was unusable.
This commit is contained in:
parent
f141ba5e26
commit
5b10ba2ce2
@ -105,7 +105,7 @@ if [ "x$warning_mode" != "xpedantic" ]; then
|
|||||||
# Added unless --with-debug=full
|
# Added unless --with-debug=full
|
||||||
debug_extra_cflags="-O1 -Wuninitialized"
|
debug_extra_cflags="-O1 -Wuninitialized"
|
||||||
else
|
else
|
||||||
warnings="-W -Wall -ansi -pedantic -Wno-long-long -D_POSIX_SOURCE"
|
warnings="-W -Wall -ansi -pedantic -Wno-long-long -Wno-unused -D_POSIX_SOURCE"
|
||||||
c_warnings="$warnings"
|
c_warnings="$warnings"
|
||||||
cxx_warnings="$warnings -std=c++98"
|
cxx_warnings="$warnings -std=c++98"
|
||||||
# NOTE: warning mode should not influence optimize/debug mode.
|
# NOTE: warning mode should not influence optimize/debug mode.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user