build: Add -Wpointer-arith flag

Even though we are using with GNU extensions I will add this flag
since I prefer the explicit writing style that we have to use wich
this flag enabled.
This commit is contained in:
Michael Vetter
2026-02-28 09:28:28 +01:00
parent 38624f26a5
commit 4b5c253b89

View File

@@ -67,7 +67,8 @@ if is_debug
'-Wextra',
'-fstack-protector-strong',
'-D_FORTIFY_SOURCE=2',
'-Og'
'-Og',
'-Wpointer-arith'
], language: 'c')
if cc.get_id() == 'gcc'
add_project_arguments('-fanalyzer', language: 'c')