Re: No warning on type truncation

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

 



Ankur Arora wrote:

> I cannot find any relevant option in the manual which enables
> truncation warnings.
> What am I missing?

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

Brian

[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