summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/include/compiler.h1
-rw-r--r--src/include/compiler.h1
-rw-r--r--util/cbfstool/compiler.h1
-rw-r--r--util/cbmem/compiler.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/include/compiler.h b/payloads/libpayload/include/compiler.h
index f218725086..a830239009 100644
--- a/payloads/libpayload/include/compiler.h
+++ b/payloads/libpayload/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
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
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
diff --git a/util/cbmem/compiler.h b/util/cbmem/compiler.h
index f218725086..a830239009 100644
--- a/util/cbmem/compiler.h
+++ b/util/cbmem/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