This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20000] New: missing warning for noreturn function returning non-void
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2005 06:42:19 -0000
- Subject: [Bug c/20000] New: missing warning for noreturn function returning non-void
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC warns for noreturn functions returning non-void, but only when declared
in the obsolete way using volatile.
typedef int ft(void);
volatile ft f;
warns "'noreturn' function returns non-void value", but
int f(void) __attribute__((noreturn));
does not.
--
Summary: missing warning for noreturn function returning non-void
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20000