This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/35957] static return value type checking, no warning issued



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-04-16 11:27 -------
Not unconditionally.  With -Wconversion it does since gcc 4.3:

t.c: In function 'main':
t.c:11: warning: conversion to 'unsigned char' from 'unsigned int' may alter
its value
t.c:15: warning: conversion to 'unsigned char' from 'unsigned int' may alter
its value


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35957


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]