From 884a163407cbc179b694294771a016071a6b6dd3 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 21 Jan 2022 14:09:04 +0100 Subject: [PATCH] types.h: Introduced PCI_NONRET --- lib/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2