summaryrefslogtreecommitdiff
authorPeter Hutterer <peter.hutterer@who-t.net>2012-02-28 01:27:28 (GMT)
committer Peter Hutterer <peter.hutterer@who-t.net>2012-03-01 02:15:55 (GMT)
commit28abd26ba9379004db8667eaa2fcd2aa0b3d6fc4 (patch) (side-by-side diff)
treef275ff9e1b7ed6abfe689574ab066608df8d27da
parent6a862efd7f3d8504b600e9d67c2b9b43e41ee8d5 (diff)
downloadxf86-input-wacom-master.zip
xf86-input-wacom-master.tar.gz
xsetwacom: fix compiler warningHEADmaster
xsetwacom.c: In function ‘set_output’: xsetwacom.c:2359:6: warning: variable ‘success’ set but not used [-Wunused-but-set-variable] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--tools/xsetwacom.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 0c24f2c..2c546b1 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -2356,7 +2356,6 @@ static void set_output(Display *dpy, XDevice *dev, param_t *param, int argc, cha
int x, y;
unsigned int width, height;
int flags = XParseGeometry(argv[0], &x, &y, &width, &height);
- Bool success = False;
if (argc != param->arg_count)
{
@@ -2366,15 +2365,15 @@ static void set_output(Display *dpy, XDevice *dev, param_t *param, int argc, cha
}
if (MaskIsSet(flags, XValue|YValue|WidthValue|HeightValue))
- success = set_output_area(dpy, dev, x, y, width, height);
+ set_output_area(dpy, dev, x, y, width, height);
else if (strcasecmp(argv[0], "next") == 0)
- success = set_output_next(dpy, dev);
+ set_output_next(dpy, dev);
else if (strcasecmp(argv[0], "desktop") == 0)
- success = set_output_desktop(dpy, dev);
+ set_output_desktop(dpy, dev);
else if (!need_xinerama(dpy))
- success = set_output_xrandr(dpy, dev, argv[0]);
+ set_output_xrandr(dpy, dev, argv[0]);
else if (convert_value_from_user(param, argv[0], &head_no))
- success = set_output_xinerama(dpy, dev, head_no);
+ set_output_xinerama(dpy, dev, head_no);
else
fprintf(stderr, "Unable to find an output '%s'.\n", argv[0]);
}