Re: [PATCH] Drop -pedantic from CFLAGS
"Kevin J. McCarthy" <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <aY71iGygrNn0a1ez@qinghai> |
On Fri, Feb 13, 2026 at 09:27:43AM +0100, Rene Kita wrote: >Consensus is that it does more harm than good. >--- > configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Whoops, I apologize. I didn't express myself clearly. At the time I thought we were talking about disabling it in the sr.ht CI builds that were causing you to contort to get working with -Werror also enabled. While I'm not absolutely against removing -pedantic, my limited understanding was that "-Wall -pedantic" was a pretty good combination to ensure code is more compatible with other compilers and environments. I'd like to hear other opinions before we completely drop it from our default compiler options. >diff --git a/configure.ac b/configure.ac >index 33d483d2..927f0243 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -956,7 +956,7 @@ AC_ARG_ENABLE(warnings, AS_HELP_STRING([--disable-warnings],[Turn off compiler w > fi]) > > if test $mutt_cv_warnings = yes; then >- CFLAGS="-Wall -pedantic $CFLAGS" >+ CFLAGS="-Wall $CFLAGS" > fi > > AC_ARG_ENABLE(nfs-fix, AS_HELP_STRING([--enable-nfs-fix],[Work around an NFS with broken attributes caching]), >-- >2.51.0 > -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmO9YgACgkQre92hIAx a9p2rg/+OGA1A5mYvsB80BEfpsR6FCTdA85q9Q2JIlKtzJ6VO95qf7y9B0EvJQH4 /c3qavoeAhWc7galMR9yok54H67n1HV/G9KYpWnBLmTjA4pvsgvqp6ma7wQrTG/B SHcbpZxUwMUaf/GVXOJdj7evhVvGsWwq0b0WdP3c6ZBQkR7vA1+CsZYmGd2ygKD6 JSI7Gw0KQUefMmPnhnCvMwVTlTn/tMugaxbJU0WQ/5mr8rx6rZ+1k1KlfMuf0zqX opFDV7gIJcauq3PRS9V8GGe8/rYQPY5em3o0fwC7eynecnR1BhJuockHT/1G66YZ qoFMiQra4apIxxQLmYWeOd81UyS9NBZH8exvIDkw1epQZz/XuZk9KTM1mA8hD13O 5nAlIHQR8afjvJ4PnslinOsyoBLyNSR7w7WvYPt5eb6sbg0QdiVfEAZiTFi7J5N1 UHTcHHuQfVR4W3DJdwRPiGEUjBq6wfn3zkdRtbI+SQDx7AZDpTd9NpzBwQWjfiDv LsOUtJvm6kOdF+sasAlAsmbA+gSiTDW3oI7r2H+5iVWyklhca+g4Tr4dhvW0zvE2 vio579ZWeusvBdmv6X5jjl1K6ByXjIzw1WLoX3yC9UCL2yUOYXyZxrGGOT1IqVT7 YeiGawOvMvAQKd5vy/loEGtaROd2v46GLZhW++ZqlGsnk0QYA10= =hXhp -----END PGP SIGNATURE-----