meson.build: Pass -Wno-error=maybe-uninitialized

The nightly flatpak builds after
ce54a25275
fail due to an unfortunate combination of compiler flags. This commit
disables the error, since it’s rather inconsistent when the warning is
spit out.
This commit is contained in:
Ernestas Kulik 2018-10-31 21:47:59 +01:00
parent 3332de3026
commit 4c2e9da9a9

View file

@ -54,6 +54,13 @@ add_project_arguments(
'-Werror=strict-prototypes',
'-Werror=undef',
'-Werror=uninitialized',
# Context: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/commit/ce54a2527555e51e4ebf4cce9cbb6259cafa89a4
# -O2 and -fexceptions unmask some cases of -Wmaybe-uninitialized, which
# become errors for some reason (Im guessing because of the
# -Werror=uninitialized above, but no idea why that implies this).
# This being an error is nice and all, but not when its appearance is
# dependent on optimization level and other flags.
'-Wno-error=maybe-uninitialized',
]),
'-D_GNU_SOURCE',
language: 'c'