From 01c0aae78a5996e7b7ddd4c547c5762ce6ab0387 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Wed, 20 Mar 2024 15:03:21 +0100 Subject: [PATCH] build: Switch default meson buildtype to 'debugoptimized' The meson 'debug' buildtype defaults to '-O0 -g' which misses some important compiler warnings (as of gcc-13). While there's no universal solution, the 'debugoptimized' buildtype supplies '-O2 -g' that appears to be a reasonable compromise for having important compiler warnings by default. Signed-off-by: Tomas Bzatek --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5d482787..05efb024 100644 --- a/meson.build +++ b/meson.build @@ -13,7 +13,7 @@ project( default_options: [ 'c_std=gnu99', 'warning_level=1', - 'buildtype=debug', + 'buildtype=debugoptimized', 'prefix=/usr/local', 'sysconfdir=etc', 'wrap_mode=nofallback'