Move use of __warnattr to __deprecated.
clang don't support warning attribute. Replacing warning attriubte with deprecated attribute can achieve the same behavior whether compiled by gcc or clang. Bug: 19340053 Change-Id: I064432b81cf55212458edbc749eb72dc15a810fb
This commit is contained in:
@@ -334,12 +334,16 @@
|
||||
#define __wur
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ(3, 2)
|
||||
#define __deprecated(msg) __attribute__ ((deprecated(msg)))
|
||||
#else
|
||||
#define __deprecated(msg)
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ(4, 3)
|
||||
#define __errorattr(msg) __attribute__((__error__(msg)))
|
||||
#define __warnattr(msg) __attribute__((__warning__(msg)))
|
||||
#else
|
||||
#define __errorattr(msg)
|
||||
#define __warnattr(msg)
|
||||
#endif
|
||||
|
||||
#define __errordecl(name, msg) extern void name(void) __errorattr(msg)
|
||||
|
Reference in New Issue
Block a user