No warning on type truncation
Ankur Arora
terminus@gmail.com
Sun Aug 3 19:49:00 GMT 2008
> -Wconversion with 4.4 does warn:
>
> tc.c: In function 'main':
> tc.c:5: warning: conversion to 'int' from 'long int' may alter its value
>
> I think that this was added in 4.3, or rather the -Wconversion prior to
> 4.3 meant something different and less useful.
Yes, I did try with -Wconversion in 4.1.2 but that worked only for conversions
across function calls/prototypes.
Thanks for the pointer,
Ankur
--
667:
The neighbor of the beast.
More information about the Gcc-help
mailing list