~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

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

Details
Message ID
<20221214004254.21939-1-ismael@iodev.co.uk>
DKIM signature
missing
Download raw message
Patch: +3 -0
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

[basu/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CP14HSGYIKWU.13XKANOU64TKB@cirno2>
In-Reply-To
<20221214004254.21939-1-ismael@iodev.co.uk> (view parent)
DKIM signature
missing
Download raw message
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]: 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
Details
Message ID
<k1vET9vPYEACFCHR6kZ4UicLQFwCIVxpr_JfUWM54a2BWvuwrBvV4SJEUZeAtId8tgCCsrA8HJ3IXjVqvgMmqNtEibyvMJ8ApLrPFs1ka5o=@emersion.fr>
In-Reply-To
<20221214004254.21939-1-ismael@iodev.co.uk> (view parent)
DKIM signature
missing
Download raw message
Maybe we can set warning_level=2 in the project()'s default_options
instead?

Upstream systemd does that.
Reply to thread Export thread (mbox)