[alsa-devel] [PATCH 4/5] Android: avoid link_warning

Chih-Wei Huang cwhuang at android-x86.org
Fri Mar 15 10:17:05 CET 2019


It will be treated as an error.

Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
---
 src/pcm/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c
index 11aec805..4bb5fe5f 100644
--- a/src/pcm/pcm.c
+++ b/src/pcm/pcm.c
@@ -1053,7 +1053,7 @@ int snd_pcm_hwsync(snd_pcm_t *pcm)
 	snd_pcm_unlock(pcm);
 	return err;
 }
-#ifndef DOC_HIDDEN
+#if !defined(DOC_HIDDEN) && !defined(ANDROID)
 link_warning(snd_pcm_hwsync, "Warning: snd_pcm_hwsync() is deprecated, consider to use snd_pcm_avail()");
 #endif
 
-- 
2.20.1



More information about the Alsa-devel mailing list