This is the mail archive of the gcc@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]

Re: [tree-ssa] Statement with no effect warning


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


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