diff options
author | malc <av1474@comtv.ru> | 2009-07-17 05:57:04 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-07-17 05:57:04 +0400 |
commit | 2637872ba82baf9730ba0653129027a64e4f81e3 (patch) | |
tree | 8af0fa470341c7c964da492d49ef66f0aa19a08f /audio/alsaaudio.c | |
parent | d152f84c0787957e59067932c452f9377c2e0db6 (diff) | |
download | qemu-2637872ba82baf9730ba0653129027a64e4f81e3.tar.gz qemu-2637872ba82baf9730ba0653129027a64e4f81e3.tar.bz2 qemu-2637872ba82baf9730ba0653129027a64e4f81e3.zip |
Ignore -Waddress for alsaaudio.c
/usr/include/alsa/pcm.h contains:
#define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0)
The assert generates: "error: the address of 'sw_params' will always
evaluate as 'true'" which combined with -Werror prevents alsaaudio.o
from being built with certain versions of GCC.
Diffstat (limited to 'audio/alsaaudio.c')
-rw-r--r-- | audio/alsaaudio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index f1d573a8fa..d0b7cd0bd3 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@ -25,6 +25,10 @@ #include "qemu-common.h" #include "audio.h" +#if QEMU_GNUC_PREREQ(4, 3) +#pragma GCC diagnostic ignored "-Waddress" +#endif + #define AUDIO_CAP "alsa" #include "audio_int.h" |