Commit 75758d2c authored by Eric Engestrom's avatar Eric Engestrom

meson,configure: add warning when using undefined preprocessor tokens

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
parent 8177d73b
......@@ -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 MAYBE_WARN in an ignorable way (like adding whitespace)
MAYBE_WARN="-Wall -Wextra \
MAYBE_WARN="-Wall -Wextra -Wundef \
-Wsign-compare -Werror-implicit-function-declaration \
-Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
......
......@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
endif
warn_c_args = []
foreach a : ['-Wall', '-Wextra', '-Wsign-compare',
foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',
'-Werror-implicit-function-declaration', '-Wpointer-arith',
'-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
'-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment