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 <tbzatek@redhat.com>
default_options: [
'c_std=gnu99',
'warning_level=1',
- 'buildtype=debug',
+ 'buildtype=debugoptimized',
'prefix=/usr/local',
'sysconfdir=etc',
'wrap_mode=nofallback'