summaryrefslogtreecommitdiff
path: root/plugins/xrandr
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-21 20:44:51 +0100
committerLuke from DC <[email protected]>2021-02-01 03:57:01 +0000
commit0bd62655b7b298069fbe8618a30ccc996aef79f9 (patch)
treed051d06775f039c2bafd216157a5c359f86a90f4 /plugins/xrandr
parent5c5bc168873c840f64545527cd245b2e87ada488 (diff)
downloadmate-settings-daemon-0bd62655b7b298069fbe8618a30ccc996aef79f9.tar.bz2
mate-settings-daemon-0bd62655b7b298069fbe8618a30ccc996aef79f9.tar.xz
cppcheck warning: Variable is assigned a value that is never used
Diffstat (limited to 'plugins/xrandr')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 7e0a8d9..96e9455 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -785,7 +785,7 @@ find_best_mode (MateRROutput *output)
MateRRMode *preferred;
MateRRMode **modes;
int best_size;
- int best_width, best_height, best_rate;
+ int best_rate;
int i;
MateRRMode *best_mode;
@@ -797,7 +797,7 @@ find_best_mode (MateRROutput *output)
if (!modes)
return NULL;
- best_size = best_width = best_height = best_rate = 0;
+ best_size = best_rate = 0;
best_mode = NULL;
for (i = 0; modes[i] != NULL; i++) {
@@ -812,8 +812,6 @@ find_best_mode (MateRROutput *output)
if (size > best_size) {
best_size = size;
- best_width = w;
- best_height = h;
best_rate = r;
best_mode = modes[i];
} else if (size == best_size) {