This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18411] Warning not legitimate
- From: "manus at eiffel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2004 00:59:50 -0000
- Subject: [Bug c/18411] Warning not legitimate
- References: <20041109232340.18411.manus@eiffel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From manus at eiffel dot com 2004-11-10 00:59 -------
Ok, so why don't you generate the warning only when it makes sense. In my
original case, I was passing a char and tell the C compiler it was a function
pointer expecting a char. In this scenario it should not produce any warning.
If you have incompatible types (such as int where you expect a float/double)
then I'm ok that you generate a warning (although I would prefer an error since
the generated code is incorrect).
Or better, if possible, try to fix the inliner issue.
Thanks,
Manu
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18411