3 ms·
>You won't even get a warning unless -Wextra or -Weverything is turned on. I know people are used to languages where compiler warnings are on by default, but i
by veltas 5y ago
>You won't even get a warning unless -Wextra or -Weverything is turned on.
I know people are used to languages where compiler warnings are on by default, but if you are building C without -W/-Wextra you are kind of asking for trouble. -Weverything is probably too pedantic for most people but -Wextra is pretty much required. And -Werror is required for projects where discipline can't be assumed or where the build log is bigger than a screenful.