https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96570
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #11 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Also note that srand(time(nullptr)); should be perfectly valid code even after 2038. Now to suppress the warning we can write srand((int)time(nullptr)); So if we start to warn even with an explicitly cast, how would we handle this case now?