"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