From 0068a9f57910b766cd534f83b8fcb0fee06bde60 Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Thu, 3 Aug 2017 15:49:09 -0700 Subject: add __must_check to */compiler.h the __must_check function attribute is pretty much straight from the linux kernel - used to encourage callers to consume function return values. Change-Id: I1812d957b745d6bebe2a8d34a9c4862316aa8530 Signed-off-by: Caveh Jalali Reviewed-on: https://review.coreboot.org/20881 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/include/compiler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/include/compiler.h b/src/include/compiler.h index f218725086..a830239009 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -24,5 +24,6 @@ #define __aligned(x) __attribute__((aligned(x))) #define __always_unused __attribute__((unused)) +#define __must_check __attribute__((warn_unused_result)) #endif -- cgit v1.2.3