I can see why this code is harmless, but it seems so silly I don't know why g++ doesn't warn with -Wall.
Code:#include <ctime> void func(std::time_t) { //do whatever } int main() { func( std::time(0) ); }
I can see why this code is harmless, but it seems so silly I don't know why g++ doesn't warn with -Wall.
Code:#include <ctime> void func(std::time_t) { //do whatever } int main() { func( std::time(0) ); }
"If you tell the truth, you don't have to remember anything"
-Mark Twain