diff options
Diffstat (limited to 'include/tinyalsa/attributes.h')
-rw-r--r-- | include/tinyalsa/attributes.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/tinyalsa/attributes.h b/include/tinyalsa/attributes.h index e33f46a..f465ba1 100644 --- a/include/tinyalsa/attributes.h +++ b/include/tinyalsa/attributes.h @@ -6,7 +6,12 @@ * when the library is being used incorrectly. * */ -#ifdef __GNUC__ +// FIXME: Disable the deprecated attribute in Android temporarily. pcm_read/write are marked as +// deprecated functions in the latest tinyalsa in GitHub. However, there are lots of libraries in +// Android using these functions and building with -Werror flags. Besides build breakage, the +// behavior and interface of the successors, pcm_readi/writei, are also changed. Once all have +// been cleaned up, we will enable this again. +#if defined(__GNUC__) && !defined(ANDROID) /** Issues a warning when a function is being * used that is now deprecated. @@ -20,7 +25,7 @@ * */ #define TINYALSA_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else /* __GNUC__ */ +#else /* __GNUC__ && !ANDROID */ /** This is just a placeholder for compilers * that aren't GCC or Clang. @@ -34,6 +39,6 @@ * */ #define TINYALSA_WARN_UNUSED_RESULT -#endif /* __GNUC__ */ +#endif /* __GNUC__ && !ANDROID */ #endif /* TINYALSA_ATTRIBUTES_H */ |