summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2011-06-03 15:59:14 +0200
committerCyril Brulebois <kibi@debian.org>2011-06-03 15:59:14 +0200
commit1fea6530eeca06b0d8d15a9327f87063292e1e6d (patch)
treee95baddfcf2009b3f7fb08ad546e756535ac06ad /src
parentfd61e53ed08cec2b3af688a55507477f6ef30544 (diff)
Silence gcc: report_{x, y} are getting initialized.
Get us rid of: | CC acecad.lo | acecad.c: In function 'USBReadInput': | acecad.c:1052:43: warning: 'report_y' may be used uninitialized in this function [-Wuninitialized] | acecad.c:1052:43: warning: 'report_x' may be used uninitialized in this function [-Wuninitialized] Both code paths (with XORG_BOTCHED_INPUT or not) will lead report_x and report_y to be set, but make sure the compiler stops guessing. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Cyril Brulebois <kibi@debian.org>
Diffstat (limited to 'src')
-rw-r--r--src/acecad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acecad.c b/src/acecad.c
index f5a2213..1e2f0c0 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -919,7 +919,7 @@ USBReadInput (InputInfoPtr local)
int x = priv->acecadOldX;
int y = priv->acecadOldY;
int z = priv->acecadOldZ;
- int report_x, report_y;
+ int report_x = 0, report_y = 0;
int prox = priv->acecadOldProximity;
int buttons = priv->acecadOldButtons;
int is_core_pointer = 0;