From: Tomas Bzatek Date: Wed, 20 Mar 2024 14:03:21 +0000 (+0100) Subject: build: Switch default meson buildtype to 'debugoptimized' X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fbd0a2cfbc920fa34146756087146f1e6f408b4f;p=users%2Fsagi%2Flibnvme.git 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 --- 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'