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:
@@ -67,7 +67,8 @@ if is_debug
|
|||||||
'-Wextra',
|
'-Wextra',
|
||||||
'-fstack-protector-strong',
|
'-fstack-protector-strong',
|
||||||
'-D_FORTIFY_SOURCE=2',
|
'-D_FORTIFY_SOURCE=2',
|
||||||
'-Og'
|
'-Og',
|
||||||
|
'-Wpointer-arith'
|
||||||
], language: 'c')
|
], language: 'c')
|
||||||
if cc.get_id() == 'gcc'
|
if cc.get_id() == 'gcc'
|
||||||
add_project_arguments('-fanalyzer', language: 'c')
|
add_project_arguments('-fanalyzer', language: 'c')
|
||||||
|
|||||||
Reference in New Issue
Block a user