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/70073] [6 Regression] -Werror=return-type ignores call to function with attribute noreturn


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

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