OSDN Git Service

Ignore -Waddress for alsaaudio.c
authormalc <av1474@comtv.ru>
Fri, 17 Jul 2009 01:57:04 +0000 (05:57 +0400)
committermalc <av1474@comtv.ru>
Fri, 17 Jul 2009 01:57:04 +0000 (05:57 +0400)
commit2637872ba82baf9730ba0653129027a64e4f81e3
tree8af0fa470341c7c964da492d49ef66f0aa19a08f
parentd152f84c0787957e59067932c452f9377c2e0db6
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.
audio/alsaaudio.c