From 0bd62655b7b298069fbe8618a30ccc996aef79f9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 21 Jan 2021 20:44:51 +0100 Subject: cppcheck warning: Variable is assigned a value that is never used --- plugins/xrandr/msd-xrandr-manager.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/xrandr') 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) { -- cgit v1.2.1