https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ada609bdbc18f1cb3b9bf…
commit ada609bdbc18f1cb3b9bff1c6854c40be076b570
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Jun 22 10:57:06 2021 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Mon Jun 28 10:20:57 2021 +0200
[PSDK] Alias _Check_return_ annotation to warn_unused_result attribute
---
sdk/include/psdk/gcc_sal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sdk/include/psdk/gcc_sal.h b/sdk/include/psdk/gcc_sal.h
index 0e0c9570893..421e4e18e16 100644
--- a/sdk/include/psdk/gcc_sal.h
+++ b/sdk/include/psdk/gcc_sal.h
@@ -18,5 +18,9 @@
#if __has_attribute(warn_unused_result)
# undef _Must_inspect_result_
+/* FIXME: Not really equivalent */
# define _Must_inspect_result_ __attribute__((__warn_unused_result__))
+# undef _Check_return_
+/* This one is 1:1 equivalent */
+# define _Check_return_ __attribute__((__warn_unused_result__))
#endif