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)
Yes, it is to prevent the compiler from complaining about unused variables. In this case a better way would be:
int main(int, char**) { ... }
Leaving the parameters unnamed tells the compiler that they're there but are not used.