mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 11:44:03 +02: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:
committed by
Marco Trevisan (Treviño)
parent
f0e98a1923
commit
4353813058
@@ -484,6 +484,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
|||||||
'-Werror=declaration-after-statement',
|
'-Werror=declaration-after-statement',
|
||||||
'-Werror=implicit-function-declaration',
|
'-Werror=implicit-function-declaration',
|
||||||
'-Werror=missing-prototypes',
|
'-Werror=missing-prototypes',
|
||||||
|
'-Werror=pointer-sign',
|
||||||
]
|
]
|
||||||
warning_cxx_args = warning_common_args
|
warning_cxx_args = warning_common_args
|
||||||
warning_objc_args = warning_c_args
|
warning_objc_args = warning_c_args
|
||||||
|
Reference in New Issue
Block a user