Re: [PATCH v2] ALSA: usb/line6: remove 'defined but not used' warning

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

 



On Tue, 07 Jul 2020 20:49:24 +0200,
Pierre-Louis Bossart wrote:
> 
> Fix W=1 warning. Variables are declared in a header file included from
> multiple C files, replace by #defines as suggested by Takashi
> 
> sound/usb/line6/driver.h:70:18: warning: ‘SYSEX_EXTRA_SIZE’ defined
> but not used [-Wunused-const-variable=]
>    70 | static const int SYSEX_EXTRA_SIZE = sizeof(line6_midi_id) + 4;
>       |                  ^~~~~~~~~~~~~~~~
> sound/usb/line6/driver.h:69:18: warning: ‘SYSEX_DATA_OFS’ defined but
>    not used [-Wunused-const-variable=]
>    69 | static const int SYSEX_DATA_OFS = sizeof(line6_midi_id) + 3;
>       |                  ^~~~~~~~~~~~~~
> 
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx>

Applied, thanks.


Takashi



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

  Powered by Linux