This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70073] [6 Regression] -Werror=return-type ignores call to function with attribute noreturn
- From: "douglas.bagnall at catalyst dot net.nz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Mar 2016 03:32:59 +0000
- Subject: [Bug c/70073] [6 Regression] -Werror=return-type ignores call to function with attribute noreturn
- Auto-submitted: auto-generated
- References: <bug-70073-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70073
--- Comment #2 from Douglas Bagnall <douglas.bagnall at catalyst dot net.nz> ---
Created attachment 37864
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37864&action=edit
The preprocessed C file
Here is the preprocessed source. It looks like _hx509_abort() has lost its
attributes:
void
_hx509_abort (
const char * ,
...)
;
The relevant header contains this bit:
#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x)
#endif