Re: char y = 469;

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

 



"Diego Novillo" <dnovillo@xxxxxxxxxx> writes:

> On 8/27/07, stf_polska <stf_polska@xxxxx> wrote:
> 
> > That does not work --- still no warning. :-/
> 
> You're right.  The warning does trigger on mainline GCC, so it must've
> been fixed recently.
> 
> $ gcc --version
> gcc (GCC) 4.3.0 20070815 (experimental)
> 
> $ gcc a.c -Wconversion -c
> a.c: In function 'foo':
> a.c:4: warning: conversion to 'char' from 'int' may alter its value

This warning is (or, rather, will be) new with gcc 4.3.0, when gcc
4.3.0 is released.

Ian

[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