Warnings in C++ are errors. Treat them as such, because they can lead to unexpected behavior or crashes. The code below gives you only a warning, and by the C++ standard, it is undefined behavior for 32-bit integers.

int n = 1e10; // undefined behavior for 32-bit int

Next - Previous