Discussion:
[Linuxwacom-devel] [PATCH] Fix build with #ifdef DEBUG disabled
Peter Hutterer
2017-03-12 22:50:53 UTC
Permalink
Introduced in de650d6224

Reported-by: Matt Turner <***@gmail.com>
Signed-off-by: Peter Hutterer <***@who-t.net>
---
src/xf86Wacom.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index 26b4e9c..a511fd2 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -823,9 +823,7 @@ static void wcmUnlinkTouchAndPen(InputInfoPtr pInfo)
static int wcmDevProc(DeviceIntPtr pWcm, int what)
{
InputInfoPtr pInfo = (InputInfoPtr)pWcm->public.devicePrivate;
-#ifdef DEBUG
WacomDevicePtr priv = (WacomDevicePtr)pInfo->private;
-#endif
Status rc = !Success;

DBG(2, priv, "BEGIN dev=%p priv=%p "
--
2.9.3
Jason Gerecke
2017-03-24 20:15:57 UTC
Permalink
Pushed, thanks.

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....



On Sun, Mar 12, 2017 at 3:50 PM, Peter Hutterer
Post by Peter Hutterer
Introduced in de650d6224
---
src/xf86Wacom.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index 26b4e9c..a511fd2 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -823,9 +823,7 @@ static void wcmUnlinkTouchAndPen(InputInfoPtr pInfo)
static int wcmDevProc(DeviceIntPtr pWcm, int what)
{
InputInfoPtr pInfo = (InputInfoPtr)pWcm->public.devicePrivate;
-#ifdef DEBUG
WacomDevicePtr priv = (WacomDevicePtr)pInfo->private;
-#endif
Status rc = !Success;
DBG(2, priv, "BEGIN dev=%p priv=%p "
--
2.9.3
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Linuxwacom-devel mailing list
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
Loading...