From: Martin Mares Date: Fri, 21 Jan 2022 13:09:04 +0000 (+0100) Subject: types.h: Introduced PCI_NONRET X-Git-Tag: v3.8.0~59 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=884a163407cbc179b694294771a016071a6b6dd3;p=pciutils.git types.h: Introduced PCI_NONRET --- 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 + * Copyright (c) 1997--2022 Martin Mares * * 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