> is gcc/g++ able to warn me in these cases: > > short int a; > long int b; > a = b; I just tried -Wall which turns on almost all warnings, but it didn't warn of the loss of precision. My lint did, however.