3 ms·
Declaring '-Wall -Wextra -Werror' on the compiler command line isn't exactly "jumping through hoops" though. This should be the default of course, but this wil
by flohofwoe 3y ago
Declaring '-Wall -Wextra -Werror' on the compiler command line isn't exactly "jumping through hoops" though.
This should be the default of course, but this will just bring out the pitch forks because people have different opinions (for instance this innocent unused-variable-error in Go is currently by far the most controversial feature in Zig).
- spc476 3y agoAnd then you hit: warning: ISO C forbids assignment between function pointer and `void *' Which, while true, is allowed (and in fact, required by) POSIX. Of course, not passing "-pedantic" will suppress that warning, but you'll also suppress other, critical warnings. Okay, I'll put away my pitchfork now.
- pjmlp 3y agoSuch warnings might save some hours of pain when writing cross platform code.
- LoganDark 3y agoThis isn't really an innocent Go feature, either. I have a meme saved somewhere that's basically "no, fuck you, variable declared but not used".