summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-06-18 10:57:25 -0700
committerNick Kralevich <nnk@google.com>2013-06-18 12:14:47 -0700
commitbda25e4ed5f2fdd65cf32e7454774f5937c4ede4 (patch)
treea5c18f2031ff6faf4f9822f9dfbbd1337414a590
parent406c3bb885538e5003efc3736cd2b57ffef2b5cc (diff)
downloadsystem_core-bda25e4ed5f2fdd65cf32e7454774f5937c4ede4.zip
system_core-bda25e4ed5f2fdd65cf32e7454774f5937c4ede4.tar.gz
system_core-bda25e4ed5f2fdd65cf32e7454774f5937c4ede4.tar.bz2
Don't use __attribute__(__error__)
__attribute(__error__) isn't supported on clang, and generates compiler warnings. Use __errordecl instead, which does the right thing for different compilers. Change-Id: Ifb0797a5de703cc5b3c39dcd97bcfaf404f1cafa
-rw-r--r--include/cutils/properties.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/cutils/properties.h b/include/cutils/properties.h
index 228b73e..2c70165 100644
--- a/include/cutils/properties.h
+++ b/include/cutils/properties.h
@@ -54,8 +54,7 @@ int property_list(void (*propfn)(const char *key, const char *value, void *cooki
extern int __property_get_real(const char *, char *, const char *)
__asm__(__USER_LABEL_PREFIX__ "property_get");
-extern void __property_get_too_small_error()
- __attribute__((__error__("property_get() called with too small of a buffer")));
+__errordecl(__property_get_too_small_error, "property_get() called with too small of a buffer");
__BIONIC_FORTIFY_INLINE
int property_get(const char *key, char *value, const char *default_value) {