Skip to content

Commit

Permalink
replace clang attribute analyzer_noreturn by proper __noreturn__
Browse files Browse the repository at this point in the history
analyzer_noreturn is only a static analyzer hint, but does not even protect from false
-Wsometimes-uninitialized warnings, with Parrot_ex_throw_from_c*().

__noreturn__ also produces better code.
  • Loading branch information
Reini Urban committed Jul 31, 2012
1 parent 11f9d7c commit d09696e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/parrot/compiler.h
Expand Up @@ -38,11 +38,7 @@
# ifdef _MSC_VER
# define __attribute__noreturn__ __declspec(noreturn)
# else
# ifdef __clang__
# define __attribute__noreturn__ __attribute__((analyzer_noreturn))
# else
# define __attribute__noreturn__ __attribute__((__noreturn__))
# endif
# define __attribute__noreturn__ __attribute__((__noreturn__))
# endif
#endif
#ifdef HASATTRIBUTE_PURE
Expand Down

0 comments on commit d09696e

Please sign in to comment.