This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: integer conversion warnings?


> 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. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]