mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-07 06:26:53 +02:00
build: Enable -Wundef warning by default
We prefer `#ifdef` to `#if` in code, so let’s use the `-Wundef` warning to enforce that. In CI, `-Werror` is enabled, so this should be enforcement enough. Suggested by Thomas Haller. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
76ed4680bb
commit
32f68bef2e
@ -579,6 +579,8 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
'-Wmissing-field-initializers',
|
||||
'-Wnonnull',
|
||||
'-Wnull-dereference',
|
||||
# We prefer #ifdef to #if
|
||||
'-Wundef',
|
||||
'-Wunused',
|
||||
# Due to maintained deprecated code, we do not want to see unused parameters
|
||||
'-Wno-unused-parameter',
|
||||
|
Loading…
x
Reference in New Issue
Block a user