[PSDK] Alias _Check_return_ annotation to warn_unused_result attribute

This commit is contained in:
Jérôme Gardou 2021-06-22 10:57:06 +02:00 committed by Jérôme Gardou
parent e10892e4f4
commit ada609bdbc

View file

@ -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