diff options
author | Eric Engestrom | 2018-01-26 05:17:33 -0600 |
---|---|---|
committer | Eric Engestrom | 2018-01-31 05:22:32 -0600 |
commit | 75758d2ccf608de5774863d3bb7ae36c50197355 (patch) | |
tree | 24d8f551339e544d070738b9e10b196ff64acdff | |
parent | 8177d73bdb12eedfa85da35fad6882afb2b01288 (diff) | |
download | external-libgbm-75758d2ccf608de5774863d3bb7ae36c50197355.tar.gz external-libgbm-75758d2ccf608de5774863d3bb7ae36c50197355.tar.xz external-libgbm-75758d2ccf608de5774863d3bb7ae36c50197355.zip |
meson,configure: add warning when using undefined preprocessor tokens
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a0246fe5..5396c841 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked. So there's no need to do anything | |||
197 | dnl else. If for any reason you need to force a recheck, just change | 197 | dnl else. If for any reason you need to force a recheck, just change |
198 | dnl MAYBE_WARN in an ignorable way (like adding whitespace) | 198 | dnl MAYBE_WARN in an ignorable way (like adding whitespace) |
199 | 199 | ||
200 | MAYBE_WARN="-Wall -Wextra \ | 200 | MAYBE_WARN="-Wall -Wextra -Wundef \ |
201 | -Wsign-compare -Werror-implicit-function-declaration \ | 201 | -Wsign-compare -Werror-implicit-function-declaration \ |
202 | -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ | 202 | -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ |
203 | -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ | 203 | -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ |
diff --git a/meson.build b/meson.build index e05db1cd..e249ea0f 100644 --- a/meson.build +++ b/meson.build | |||
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream') | |||
203 | endif | 203 | endif |
204 | 204 | ||
205 | warn_c_args = [] | 205 | warn_c_args = [] |
206 | foreach a : ['-Wall', '-Wextra', '-Wsign-compare', | 206 | foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef', |
207 | '-Werror-implicit-function-declaration', '-Wpointer-arith', | 207 | '-Werror-implicit-function-declaration', '-Wpointer-arith', |
208 | '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', | 208 | '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes', |
209 | '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', | 209 | '-Wmissing-declarations', '-Wnested-externs', '-Wpacked', |