[tree-ssa] Statement with no effect warning
Falk Hueffner
falk.hueffner@student.uni-tuebingen.de
Tue Dec 16 19:25:00 GMT 2003
Jan Hubicka <jh@suse.cz> writes:
> As I discussed earlier it would be possible to make warning about
> ignored results of non-void expressions but it would be dificult to
> fine tune on where to warn and where not. I know that some other
> compilers and lint checkers do have this feature, what are the
> experiences with it?
I do not want to get a warning on this code:
#include <stdio.h>
int main (void) {
printf("hello, world\n");
}
:-)
By the way, there's also bug 13325 for tree-ssa and "Statement with no
effect warning", only it is about too much warnings, maybe if you have
a look at this you can fix it too...
--
Falk
More information about the Gcc
mailing list