From: Guenter Roeck Date: Mon, 9 Sep 2013 02:31:59 +0000 (-0700) Subject: hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable X-Git-Tag: firefly_0821_release~176^2~5351^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=98128de30f4bb2adc29028fdd5839de83bc4bcff;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Jean Delvare --- diff --git a/drivers/hwmon/hwmon-vid.c b/drivers/hwmon/hwmon-vid.c index 89cfd64b3373..ef91b8a67549 100644 --- a/drivers/hwmon/hwmon-vid.c +++ b/drivers/hwmon/hwmon-vid.c @@ -246,7 +246,7 @@ static struct vrm_model vrm_models[] = { */ static u8 get_via_model_d_vrm(void) { - unsigned int vid, brand, dummy; + unsigned int vid, brand, __maybe_unused dummy; static const char *brands[4] = { "C7-M", "C7", "Eden", "C7-D" };