~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 v2] Workaround build failure by -Wpedantic with GCC 12

Details
Message ID
<20221215231342.2709-1-ismael@iodev.co.uk>
DKIM signature
missing
Download raw message
Patch: +7 -2
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 | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index c942fd311b64..26125d625efb 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,13 @@ project(
  'c',
version : '0.2.0',
license : 'LGPLv2+',
default_options : ['c_std=gnu99', 'prefix=/usr', 'sysconfdir=/etc', 'localstatedir=/var'],
default_options : [
        'c_std=gnu99',
        'prefix=/usr',
        'sysconfdir=/etc',
        'localstatedir=/var',
        'warning_level=2',
],
meson_version : '>= 0.54'
)

@@ -22,7 +28,6 @@ cc = meson.get_compiler('c')
cxx_cmd = ''

possible_cc_flags = [
        '-Wextra',
        '-Werror=undef',
        '-Wlogical-op',
        '-Wmissing-include-dirs',
-- 
2.39.0

[basu/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CP2T0R2O2NHU.2U72JEE7S8I4@cirno>
In-Reply-To
<20221215231342.2709-1-ismael@iodev.co.uk> (view parent)
DKIM signature
missing
Download raw message
basu/patches: SUCCESS in 58s

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

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

✓ #906044 SUCCESS basu/patches/alpine.yml  https://builds.sr.ht/~emersion/job/906044
✓ #906045 SUCCESS basu/patches/freebsd.yml https://builds.sr.ht/~emersion/job/906045
Details
Message ID
<9TuYPd7H-a8bh72aUf9B_5keX-iaQ6nOB6iBz7sGdoqtxGKEHhSat7rbSJiju-BZwvyEY7bG6m-OHbJSD4UEBN50doYuI_Kn40BuL9Fyhn8=@emersion.fr>
In-Reply-To
<20221215231342.2709-1-ismael@iodev.co.uk> (view parent)
DKIM signature
missing
Download raw message
Pushed, thanks!
Reply to thread Export thread (mbox)