diff options
author | Caveh Jalali <caveh@google.com> | 2017-08-03 15:49:09 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-08-08 18:18:03 +0000 |
commit | 0068a9f57910b766cd534f83b8fcb0fee06bde60 (patch) | |
tree | 8b9a4eab97da596c840d42218e325362f0358a3a /util/cbfstool/compiler.h | |
parent | 93cdc8bbc20539cb9a2c1cbe3057c566cc5293e7 (diff) | |
download | coreboot-0068a9f57910b766cd534f83b8fcb0fee06bde60.tar.xz |
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 <caveh@google.com>
Reviewed-on: https://review.coreboot.org/20881
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/compiler.h')
-rw-r--r-- | util/cbfstool/compiler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/compiler.h b/util/cbfstool/compiler.h index f218725086..a830239009 100644 --- a/util/cbfstool/compiler.h +++ b/util/cbfstool/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 |