This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35957] static return value type checking, no warning issued
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Apr 2008 11:27:24 -0000
- Subject: [Bug c/35957] static return value type checking, no warning issued
- References: <bug-35957-16068@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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