Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bda25e4e authored by Nick Kralevich's avatar Nick Kralevich
Browse files

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
parent 406c3bb8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {