meson,configure: turn undefined preprocessor tokens warnings into errors

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
main
Eric Engestrom 2018-01-26 11:18:03 +00:00
parent 440e6ad070
commit ba17673eed
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything
dnl else. If for any reason you need to force a recheck, just change dnl else. If for any reason you need to force a recheck, just change
dnl MAYBE_WARN in an ignorable way (like adding whitespace) dnl MAYBE_WARN in an ignorable way (like adding whitespace)
MAYBE_WARN="-Wall -Wextra -Wundef \ MAYBE_WARN="-Wall -Wextra -Werror=undef \
-Wsign-compare -Werror-implicit-function-declaration \ -Wsign-compare -Werror-implicit-function-declaration \
-Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \

View File

@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
endif endif
warn_c_args = [] warn_c_args = []
foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef', foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
'-Werror-implicit-function-declaration', '-Wpointer-arith', '-Werror-implicit-function-declaration', '-Wpointer-arith',
'-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
'-Wmissing-declarations', '-Wnested-externs', '-Wpacked', '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',