[Bug c/37985] New: unsigned char shift lacks "statement with no effect" warning
tkoenig at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 1 10:55:00 GMT 2008
I would have expected a warning "statement with no effect"
for this code:
$ cat tmp.c
unsigned char foo(unsigned char a)
{
a >> 2;
return a;
}
$ gcc -S -Wall -O3 -Wextra tmp.c
$
--
Summary: unsigned char shift lacks "statement with no effect"
warning
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tkoenig at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37985
More information about the Gcc-bugs
mailing list