3 ms·
All warnings are uninteresting until they're not. > ("strncmp takes const char star, did you really mean to pass it unsigned char star") This warning (with a
by JohnFen 4y ago
All warnings are uninteresting until they're not.
> ("strncmp takes const char star, did you really mean to pass it unsigned char star")
This warning (with a different function) actually saved my bacon once, pointing me to a very obscure bug in the code.
My practice is to use -Wall and make sure that the code compiles without any warnings at all. Then I don't have a deluge of warnings to wade through.
- markrages 4y agoRemember -Wall isn't all. -Wall -Wextra is the new -Wall. I recommend asan too, where possible.
- JohnFen 4y agoOh, you're right. I need to update my build system.
- PokestarFan 4y agoWhy do compilers do stupid things like this? Seriously don't get why -Wall isn't all warnings.