diff options
author | Martin Mares <mj@ucw.cz> | 2022-01-21 14:09:04 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2022-01-21 14:09:04 +0100 |
commit | 884a163407cbc179b694294771a016071a6b6dd3 (patch) | |
tree | e9e95d638e86da8ff5e6dea2ce8789a9024def11 | |
parent | c5db7af4dee09016489185e26af66cf2f4725a21 (diff) | |
download | pciutils-884a163407cbc179b694294771a016071a6b6dd3.tar.gz |
types.h: Introduced PCI_NONRET
-rw-r--r-- | lib/types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/types.h b/lib/types.h index 7011252..c6b6152 100644 --- a/lib/types.h +++ b/lib/types.h @@ -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 |