mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 16:51:23 +00:00
[VCRUNTIME] Allow disabling GCC attributes for SAL
This commit is contained in:
parent
764cb5b8a5
commit
e202420456
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
#define __has_attribute(__x) 0
|
#define __has_attribute(__x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _GCC_NO_SAL_ATTRIIBUTES
|
||||||
#if __has_attribute(warn_unused_result)
|
#if __has_attribute(warn_unused_result)
|
||||||
# undef _Must_inspect_result_
|
# undef _Must_inspect_result_
|
||||||
/* FIXME: Not really equivalent */
|
/* FIXME: Not really equivalent */
|
||||||
|
@ -24,3 +25,4 @@
|
||||||
/* This one is 1:1 equivalent */
|
/* This one is 1:1 equivalent */
|
||||||
# define _Check_return_ __attribute__((__warn_unused_result__))
|
# define _Check_return_ __attribute__((__warn_unused_result__))
|
||||||
#endif
|
#endif
|
||||||
|
#endif // _GCC_NO_SAL_ATTRIIBUTES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue