agm: fixup!: OSS compile for plugins
* This is an extension of commit 626a97d.
* It fixes following build errors while compiling remaining test plugins:
hardware/qcom-caf/sm8550/audio/agm/plugins/tinyalsa/test/agmhostless.c:59:22: error: more '%' conversions than data arguments [-Werror,-Wformat-insufficient-args]
printf(" Usage: %s [-D card] [-P Hostless Playback device] [-C Hostless Capture device] [-p period_size]\n"
~^
hardware/qcom-caf/sm8550/audio/agm/plugins/tinyalsa/test/agmhostless.c:216:18: error: unused variable 'frames' [-Werror,-Wunused-variable]
unsigned int frames = 0, ret = 0, miid = 0;
^
hardware/qcom-caf/sm8550/audio/agm/plugins/tinyalsa/test/agmhostless.c:215:18: error: unused variable 'bytes_read' [-Werror,-Wunused-variable]
unsigned int bytes_read = 0;
^
hardware/qcom-caf/sm8550/audio/agm/plugins/tinyalsa/test/agmcompresscap.c:573:16: error: incompatible pointer types passing 'char *' to parameter of type 'FILE *' (aka 'struct __sFILE *') [-Werror,-Wincompatible-pointer-types]
fclose(file);
^~~~
out/soong/.intermediates/bionic/libc/libc/android_vendor.33_arm64_armv8-2a-dotprod_cortex-a76_shared/gen/include/stdio.h:107:18: note: passing argument to parameter '__fp' here
int fclose(FILE* __fp);
^
Change-Id: If965fb4780c64df9337be7c4d3943fb49dbd76b1
diff --git a/plugins/tinyalsa/test/Android.mk b/plugins/tinyalsa/test/Android.mk
index 67c90f2..eb951a8 100644
--- a/plugins/tinyalsa/test/Android.mk
+++ b/plugins/tinyalsa/test/Android.mk
@@ -100,6 +100,7 @@
LOCAL_VENDOR_MODULE := true
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-result
+LOCAL_CFLAGS += -Wno-format-insufficient-args -Wno-unused-variable
LOCAL_CFLAGS += -DBACKEND_CONF_FILE=\"/vendor/etc/backend_conf.xml\"
LOCAL_SRC_FILES := agmhostless.c
@@ -169,6 +170,7 @@
LOCAL_VENDOR_MODULE := true
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-result
+LOCAL_CFLAGS += -Wno-incompatible-pointer-types
LOCAL_CFLAGS += -DBACKEND_CONF_FILE=\"/vendor/etc/backend_conf.xml\"
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include