Hi Ralph, On 11/15/22 14:48, Alejandro Colomar wrote:
Here's a compiler which has been told I want C11.You told it you want C11.$ gcc -std=c11 -c str.cBut you didn't tell it to warn about non-conforming code.Moreover, you asked it to warn about things that may or may not have anything to do with ISO C11.
My mistake, for some reason I misread and thought you had used -Wall. Sorry. However, you still need -Wpedantic -pedantic-warnings, as explained above. GCC is non-conforming unless you ask it explicitly to be a conforming compiler, and even then...
[ -Wall This enables all the warnings about constructions that some users consider questionable, and that are easy to avoid (or modify to prevent the warning), even in conjunction with macros. This also enables some language‐specific warnings described in C++ Dialect Options and Objective‐C and Objective-C++ Dialect Options. ]
Cheers, Alex -- <http://www.alejandro-colomar.es/>
OpenPGP_signature
Description: OpenPGP digital signature