Re: A: a new bug to old plain C
Toon Moene <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Organization | Moene Computational Physics, Maartensdijk, The Netherlands |
| Message-ID | <[email protected]> |
On 12/6/25 00:48, Jonathan Wakely via Gcc-help wrote: > On Wed, 3 Dec 2025, 13:01 Martin Uecker, <[email protected]> wrote: > >> >> I am not sure this has been pointed out, but you can downgrade this >> to a warning with -fpermissive. >> > > Or with -Wno-incompatible-pointer-conversions This discussion is interesting to me, because I deal with a 20,000 line subset C-language code of a more than a one million line Fortran weather forecasting system. With gcc-15, I use the following C flags to get the compiler past problems introduced by colleagues (writing code in the early 2000s) who therefore only knew C99: -std=c17 -Wno-old-style-definition -Wno-implicit-function-declaration -Wno-int-conversion That is simply because, even if your source code doesn't change, C language standards do - and you have to adapt, if you don't have the time to rewrite your software. Kind regards, -- Toon Moene - e-mail: [email protected] - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands