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

[Bug c/18411] Warning not legitimate


------- 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


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