mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-28 11:46:28 +08:00
[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)
* Add some warn_unused_result attributes * Add more * Add some more
This commit is contained in:
@@ -152,4 +152,12 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef AS_WARN_UNUSED_RESULT
|
||||
#if __has_attribute(warn_unused_result)
|
||||
#define AS_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
#define AS_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ASOVERLOADABLE __attribute__((overloadable))
|
||||
|
||||
Reference in New Issue
Block a user