diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-09-08 22:31:59 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-09-10 09:28:17 -0400 |
commit | 98128de30f4bb2adc29028fdd5839de83bc4bcff (patch) | |
tree | dbeca529c6d0388cb0cc8d54d921af015296c0ab | |
parent | e5c832d5558826cc6e9a24746cfdec8e7780063a (diff) |
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>
-rw-r--r-- | drivers/hwmon/hwmon-vid.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[] = { | |||
246 | */ | 246 | */ |
247 | static u8 get_via_model_d_vrm(void) | 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 | static const char *brands[4] = { | 250 | static const char *brands[4] = { |
251 | "C7-M", "C7", "Eden", "C7-D" | 251 | "C7-M", "C7", "Eden", "C7-D" |
252 | }; | 252 | }; |