------- Comment #3 from tkoenig at gcc dot gnu dot org 2009-05-21 16:31 ------- Works with 3.4:
$ cat > tmp.c unsigned char foo(unsigned char a) { a >> 2; return a; } $ gcc-3.4 -S -O3 -Wall tmp.c tmp.c: In function `foo': tmp.c:3: warning: statement with no effect -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.4.0 4.5.0 4.3.3 Summary|unsigned char shift lacks |[4.3/4.4/4.5 Regression] |"statement with no effect" |unsigned char shift lacks |warning |"statement with no effect" | |warning Target Milestone|--- |4.3.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37985