]> mj.ucw.cz Git - pciutils.git/commitdiff
types.h: Introduced PCI_NONRET
authorMartin Mares <mj@ucw.cz>
Fri, 21 Jan 2022 13:09:04 +0000 (14:09 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 21 Jan 2022 13:09:04 +0000 (14:09 +0100)
lib/types.h

index 7011252ed18f865d584262bcc6dbfa710fd0ae05..c6b6152e7204619e3b497df3d5e23146f8caec9a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     The PCI Library -- Types and Format Strings
  *
- *     Copyright (c) 1997--2017 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2022 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
@@ -70,6 +70,8 @@ typedef u32 pciaddr_t;
 
 #if defined(__GNUC__) && __GNUC__ > 2
 #define PCI_PRINTF(x,y) __attribute__((format(printf, x, y)))
+#define PCI_NONRET __attribute((noreturn))
 #else
 #define PCI_PRINTF(x,y)
+#define PCI_NONRET
 #endif