4 ms·
I also find setting -std=c11 and -fpedantic very important, as otherwise you are writing against the gnu89 and don't get warnings about extension usage.
by camel-cdr 4y ago
I also find setting -std=c11 and -fpedantic very important, as otherwise you are writing against the gnu89 and don't get warnings about extension usage.
- augustk 4y agoOr -std=c89 and -pedantic for improved portability.
- suprjami 4y agoNot quite: https://gcc.gnu.org/onlinedocs/gcc/Standards.html https://gcc.gnu.org/onlinedocs/gcc/Standards.html > The default, if no C language dialect options are given, is `-std=gnu17`.
- account42 3y agoThis depends on the compiler version. The default was stuck at gnu89/gnu++03 for a long time.