summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.com>2014-02-12 13:22:38 +0100
committerEgbert Eich <eich@suse.com>2014-02-19 14:08:57 +0100
commit5706862f571da1d182ff0b17a697cbd1779d3be3 (patch)
tree2b406cf24f826043bdfa265db3dd9307c3af893b
parent96c9beedecccb1dbdd2a24294d25ed796639fd02 (diff)
Fix '-Wuninitialized' warnings
Pinning variables to some value to fix warning about uninitialized variable. Signed-off-by: Egbert Eich <eich@suse.com> Reviewed-by: Jason Gerecke <killertofu@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/wacom-tests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/wacom-tests.c b/test/wacom-tests.c
index 743bd2c..f44d3ab 100644
--- a/test/wacom-tests.c
+++ b/test/wacom-tests.c
@@ -247,7 +247,9 @@ test_initial_size(void)
WacomDeviceRec priv = {0};
WacomCommonRec common = {0};
- int minx, maxx, miny, maxy, xres, yres;
+ /* pin to some numbers */
+ int xres = 1920, yres = 1600;
+ int minx, maxx = 2 * xres, miny, maxy = 2 * yres;
info.private = &priv;
priv.common = &common;