summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk2
-rw-r--r--audio/Android.mk2
-rw-r--r--audio/AudioPolicyManagerBase.cpp4
-rw-r--r--audio/audio_hw_hal.cpp4
-rw-r--r--qemu/qemu.c2
5 files changed, 8 insertions, 6 deletions
diff --git a/Android.mk b/Android.mk
index 01711dc..e436875 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,7 +14,7 @@ LOCAL_SHARED_LIBRARIES := libcutils liblog
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
-LOCAL_CFLAGS += -DQEMU_HARDWARE
+LOCAL_CFLAGS += -DQEMU_HARDWARE -Wno-unused-parameter -Wno-gnu-designator
QEMU_HARDWARE := true
LOCAL_SHARED_LIBRARIES += libdl
diff --git a/audio/Android.mk b/audio/Android.mk
index 3518bad..b3040d7 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -12,7 +12,7 @@ LOCAL_SRC_FILES := \
LOCAL_MODULE := libaudiohw_legacy
LOCAL_STATIC_LIBRARIES := libmedia_helper
-LOCAL_CFLAGS := -Wno-unused-parameter
+LOCAL_CFLAGS := -Wno-unused-parameter -Wno-gnu-designator
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp
index 5774db2..60790b7 100644
--- a/audio/AudioPolicyManagerBase.cpp
+++ b/audio/AudioPolicyManagerBase.cpp
@@ -2091,7 +2091,7 @@ status_t AudioPolicyManagerBase::checkInputsForDevice(audio_devices_t device,
{
if (mHwModules[module_index]->mInputProfiles[profile_index]->mSupportedDevices
& (device & ~AUDIO_DEVICE_BIT_IN)) {
- ALOGV("checkInputsForDevice(): adding profile %d from module %d",
+ ALOGV("checkInputsForDevice(): adding profile %zu from module %zu",
profile_index, module_index);
profiles.add(mHwModules[module_index]->mInputProfiles[profile_index]);
}
@@ -2218,7 +2218,7 @@ status_t AudioPolicyManagerBase::checkInputsForDevice(audio_devices_t device,
{
IOProfile *profile = mHwModules[module_index]->mInputProfiles[profile_index];
if (profile->mSupportedDevices & device) {
- ALOGV("checkInputsForDevice(): clearing direct input profile %d on module %d",
+ ALOGV("checkInputsForDevice(): clearing direct input profile %zu on module %zu",
profile_index, module_index);
if (profile->mSamplingRates[0] == 0) {
profile->mSamplingRates.clear();
diff --git a/audio/audio_hw_hal.cpp b/audio/audio_hw_hal.cpp
index 7949a90..d15044a 100644
--- a/audio/audio_hw_hal.cpp
+++ b/audio/audio_hw_hal.cpp
@@ -28,6 +28,8 @@
namespace android_audio_legacy {
+class AudioHardwareInterface;
+
extern "C" {
struct legacy_audio_module {
@@ -37,7 +39,7 @@ struct legacy_audio_module {
struct legacy_audio_device {
struct audio_hw_device device;
- struct AudioHardwareInterface *hwif;
+ AudioHardwareInterface *hwif;
};
struct legacy_stream_out {
diff --git a/qemu/qemu.c b/qemu/qemu.c
index 739976f..83495e5 100644
--- a/qemu/qemu.c
+++ b/qemu/qemu.c
@@ -278,7 +278,7 @@ qemu_command_format( char* buffer,
int ret;
va_start(args, format);
- ret = qemu_command_format(buffer, buffer_size, format, args);
+ ret = qemu_command_vformat(buffer, buffer_size, format, args);
va_end(args);
return ret;
}