tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: further texinfo lossage with GCC 15.1
Am 23.05.2025 um 22:51 schrieb Christoph Badura:
> I guess this from https://gcc.gnu.org/gcc-15/changes.html is relevant:
> * C23 by default: GCC 15 changes the default language version for C
> compilation from -std=gnu17 to -std=gnu23. If your code relies on older
> versions of the C standard, you will need to either add -std= to your build
> flags, or port your code; see the porting notes.
> and
> * To aid the transition to C23, various diagnostics have been enhanced to
> clarify type errors such as incompatible function types, incorrect argument
> counts, and those involving bool.
>
> It's not particularly clear to me but I think it now considers this an
> error by default instead of just a warning. Maybe because of the switch
> to -std=gnu23.
Yes, that's right. In appendix "M.2 Fifth Edition", C23 says among many
other items:
> Major changes in this fifth edition (__STDC_VERSION__ 202311L)
> include:
>
> — removed support for function definitions with identifier lists;
>
> — mandated function declarations whose parameter list is empty be
> treated the same as a parameter list which only contain a single
> void;
Roland
Home |
Main Index |
Thread Index |
Old Index