With GCC 12, even with -std=gnu99, -Wpedantic complains about %m in format
strings, __PRETTY_FUNCTION__, braces inside expressions, etc.; and it
makes some of these into errors.
Fixes: https://todo.sr.ht/~emersion/basu/18
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meson.build b/meson.build
index c942fd311b64..876a48acbe9b 100644
--- a/meson.build+++ b/meson.build
@@ -61,6 +61,9 @@ possible_cc_flags = [
# work-around for gcc 7.1 turning this on on its own.
'-Wno-error=nonnull',
+ # work-around -Wpedantic added by meson/muon+ '-Wno-pedantic',+ # Disable -Wmaybe-uninitialized, since it's noisy on gcc 8 with
# optimizations enabled, producing essentially false positives.
'-Wno-maybe-uninitialized',
--
2.38.1