Re: No warning on type truncation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux