hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable
authorGuenter Roeck <linux@roeck-us.net>
Mon, 9 Sep 2013 02:31:59 +0000 (19:31 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Sep 2013 13:28:17 +0000 (06:28 -0700)
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>
drivers/hwmon/hwmon-vid.c

index 89cfd64b3373880e94bd296dcdd3f2bbf1d69df2..ef91b8a6754924319c781b89eb83b2ec393fb3a9 100644 (file)
@@ -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"
        };