I\'m looking at a piece of C++ code, and the first line in the main function caught my attention:
int main(int argc, const char* argv[]) { (void)argc; (void)
If you set -Werror option, the compiler makes all warnings into errors, stopping compilation. It's a good practice set -Wall -Werror to check all inconsistences.
-Werror
-Wall -Werror