mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
build: Specify -Werror=pointer-sign
This can catch the wrong pointer being passed to a function argument (in some cases), with few false positives. Spotted while testing !2529. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
f0e98a1923
commit
4353813058
@ -484,6 +484,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
'-Werror=declaration-after-statement',
|
||||
'-Werror=implicit-function-declaration',
|
||||
'-Werror=missing-prototypes',
|
||||
'-Werror=pointer-sign',
|
||||
]
|
||||
warning_cxx_args = warning_common_args
|
||||
warning_objc_args = warning_c_args
|
||||
|
Loading…
Reference in New Issue
Block a user