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:
Philip Withnall 2022-07-12 14:17:41 +01:00 committed by Marco Trevisan (Treviño)
parent f0e98a1923
commit 4353813058

View File

@ -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