From ada609bdbc18f1cb3b9bff1c6854c40be076b570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 22 Jun 2021 10:57:06 +0200 Subject: [PATCH] [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