Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable

This gets rid of this warning:

drivers/hwmon/hwmon-vid.c: In function 'get_via_model_d_vrm':
drivers/hwmon/hwmon-vid.c:249:27: warning: variable 'dummy' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>

+1 -1
+1 -1
drivers/hwmon/hwmon-vid.c
··· 246 246 */ 247 247 static u8 get_via_model_d_vrm(void) 248 248 { 249 - unsigned int vid, brand, dummy; 249 + unsigned int vid, brand, __maybe_unused dummy; 250 250 static const char *brands[4] = { 251 251 "C7-M", "C7", "Eden", "C7-D" 252 252 };