basu: Workaround build failure by -Wpedantic with GCC 12 v1 SUPERSEDED

Ismael Luceno: 1
 Workaround build failure by -Wpedantic with GCC 12

 1 files changed, 3 insertions(+), 0 deletions(-)
#904594 alpine.yml success
#904595 freebsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/37510/mbox | git am -3
Learn more about email & git

[PATCH basu] Workaround build failure by -Wpedantic with GCC 12 Export this patch

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.

        # work-around -Wpedantic added by meson/muon

        # Disable -Wmaybe-uninitialized, since it's noisy on gcc 8 with
        # optimizations enabled, producing essentially false positives.
basu/patches: SUCCESS in 52s

[Workaround build failure by -Wpedantic with GCC 12][0] from [Ismael Luceno][1]

[0]: https://lists.sr.ht/~emersion/public-inbox/patches/37510
[1]: mailto:ismael@iodev.co.uk

✓ #904594 SUCCESS basu/patches/alpine.yml  https://builds.sr.ht/~emersion/job/904594
✓ #904595 SUCCESS basu/patches/freebsd.yml https://builds.sr.ht/~emersion/job/904595
Maybe we can set warning_level=2 in the project()'s default_options

Upstream systemd does that.