Define-__dead-for-GNU-GCC.patch 554 B

12345678910111213141516171819202122
  1. From: Tobias Quathamer <toddy@debian.org>
  2. Date: Thu, 16 Feb 2012 11:26:51 +0100
  3. Subject: Define __dead for GNU GCC
  4. ---
  5. include/sys/cdefs.h | 4 ++++
  6. 1 files changed, 4 insertions(+), 0 deletions(-)
  7. diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
  8. index 138eaa8..f6e87c2 100644
  9. --- a/include/sys/cdefs.h
  10. +++ b/include/sys/cdefs.h
  11. @@ -40,3 +40,7 @@
  12. #ifndef __COPYRIGHT
  13. #define __COPYRIGHT(arg) static const char copyright[] __attribute__((__unused__)) = arg
  14. #endif
  15. +
  16. +#ifndef __dead
  17. +#define __dead __attribute__((__noreturn__))
  18. +#endif
  19. --