If I specify the standard to ANSI C with -std=c89
, my code won't run until I perform certain changes to make it compliant with the standard. So do I even need -pedantic
at this point if I've already set the -std=c89
flag?
By the way, the idea was to write C code which is as platform independet as possible. I was already using -pedantic
as I knew it would make the compiler more strict. However, it also made sense to explicitly choose the ANSI C standard. For some reason I thought this would make -pedantic
superfluous because the switch to ANSI C produced many errors in itself and appeared "strict enough".