snd_ctl compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The code I am working with at present includes unremarkable lines such as:

		snd_ctl_elem_value_t *line_in_vol;
		snd_ctl_elem_value_alloca(&line_in_vol);

Building this with a cross compiler for arm based on gcc 4.2.1 gives this 
warning for the 2nd line:

: warning: the address of 'line_in_vol' will always evaluate as 'true'

but an older compiler on the desktop does not show this.  Would this warning 
be expected in these circumstances, or is the compiler being over zealous?  
Am I missing something or is there a straightforward way to avoid such 
warnings?  (Code runs OK).

Thanks

Alan


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux