On 2025-06-27 07:05, Helmut Eller wrote: > The combination -Og -std=gnu99 -Wpedantic is > usable; -Og -std=cc99 -Wpedantic produces fewer warnings though. With > -O0, both -std=gnu99 and -std=c99 produce too many warnings about > statement expressions to be of any use. You can suppress those statement-expression warnings by configuring this way: ./configure \ CFLAGS='-O0 -std=c99 -Wpedantic' \ emacs_cv_statement_expressions=no I did that, and the resulting build generated several warnings about converting between function and data pointers that don't matter on any practical platform that I know of. I'm not sure it's worth the hassle to pacify GCC about them. I did find a few other C99 violations, though, and fixed them by installing the attached patch. Is it still important that Emacs port to C99? Perhaps we should upgrade the build requirement to C11 or later. It has been 14 years since C11, after all.... > I would place the 201112 <= STDC_VERSION test first and only if it fails > fall back to __attribute__((__return__)). Thanks for checking. I made the changes you suggested to Gnulib, and updated Emacs master from Gnulib. Please give it a try.