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/20000] missing warning for noreturn function returning non-void



------- Comment #4 from manu at gcc dot gnu dot org  2009-08-05 13:55 -------
What happens when a function must have a particular return type because it is
accessed through a pointer, but we want to mark it as noreturn?

Example: gcc/java/jcf.h (jcf_unexpected_eof)

I am not sure this warning is all that useful as long as the function does not
have a return statement, and we already warn about this. I propose to remove
this warning altogether (less code, the same effect).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20000


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