From 4b5c253b8961660b9ba1f245086322ecce358977 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 28 Feb 2026 09:28:28 +0100 Subject: [PATCH] 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. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 04ab74d1..3f718192 100644 --- a/meson.build +++ b/meson.build @@ -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')