d cannot be used uninitialized given the code flow, but gcc doesn't know that.
Signed-off-by: Peter Hutterer <[email protected]> --- tools/xsetwacom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index de35444..d0f713f 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1657,7 +1657,7 @@ out: static void get_mode(Display *dpy, XDevice *dev, param_t* param, int argc, char **argv) { - XDeviceInfo *info, *d; + XDeviceInfo *info, *d = NULL; int ndevices, i; XValuatorInfoPtr v; -- 1.6.6 ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
