From 348151fd0204a4ae0aa76bc3312cf045d7a6a2dd Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 16 Mar 2021 09:09:37 +0100 Subject: warning: declaration of a variable shadows a previous local --- src/wm-tester/test-gravity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wm-tester/test-gravity.c') diff --git a/src/wm-tester/test-gravity.c b/src/wm-tester/test-gravity.c index 4276549b..cb8512a0 100644 --- a/src/wm-tester/test-gravity.c +++ b/src/wm-tester/test-gravity.c @@ -66,7 +66,7 @@ window_gravity_to_string (int gravity) } static void -calculate_position (int i, int doubled, int *x, int *y) +calculate_position (int i, int is_doubled, int *x, int *y) { if (i == 9) { @@ -77,7 +77,7 @@ calculate_position (int i, int doubled, int *x, int *y) { int xoff = x_offset[i % 3]; int yoff = y_offset[i / 3]; - if (doubled) + if (is_doubled) { xoff *= 2; yoff *= 2; -- cgit v1.2.1