[Bug c/24068] Unconditional warning when using -combine
dann at godzilla dot ics dot uci dot edu
gcc-bugzilla@gcc.gnu.org
Mon Sep 26 20:46:00 GMT 2005
------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2005-09-26 20:46 -------
(In reply to comment #4)
> So this about the following:
> int f(a)
> int a;
> {
> return a;
> }
> int f(int);
>
> Which is questionable.
>
> So I don't think this is not an inappropriate warning.
It seems that the warning was designed for code like your example above.
But if you have 1 K&R file and one C90 file, then there should be no warning...
Another bad thing is that if you swap the files on the command line then you get
no warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24068
More information about the Gcc-bugs
mailing list