[Bug c/70073] [6 Regression] -Werror=return-type ignores call to function with attribute noreturn
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 4 06:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70073
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, unless you undefine __GNUC__ macro, it should be predefined and therefore
#if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x)
#endif
shouldn't do anything when compiling by GCC.
But perhaps it is
./source4/heimdal/lib/roken/roken-common.h-#ifndef HAVE___ATTRIBUTE__
./source4/heimdal/lib/roken/roken-common.h:#define __attribute__(x)
./source4/heimdal/lib/roken/roken-common.h-#endif
instead?
Best if you preprocess with -E -dD and look at where this happens...
More information about the Gcc-bugs
mailing list