I'm porting our C++ application from ARM32 Linux to ARM64 Linux. I'm not sure if there is code snippets in our application such as
int i;
long l;
...
i = (int)l;
i = static_cast<int>(l);
which doesn't (normally) have any problems on a 32-bit platform, but may have on a 64-bit platform.
Is there a GCC command line option that detects this and then issues a warning?