From 514081d23a8ea91d54bde4292eb8e0866b336407 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 20 Mar 2024 19:28:15 +0100 Subject: [PATCH] (submit/dix_typedef_fixes) dix: fix duplicate typedef of MotionTracker and *MotionTrackerPtr fix warning on duplicate typedef: > In file included from ../hw/xfree86/common/xf86Xinput.c:59: > ../dix/ptrveloc_priv.h:33:3: warning: redefinition of typedef 'MotionTracker' is a C11 feature [-Wtypedef-redefinition] > } MotionTracker, *MotionTrackerPtr; > ^ > ../include/ptrveloc.h:54:31: note: previous definition is here > typedef struct _MotionTracker MotionTracker, *MotionTrackerPtr; > ^ Signed-off-by: Enrico Weigelt, metux IT consult --- dix/ptrveloc_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dix/ptrveloc_priv.h b/dix/ptrveloc_priv.h index 3211585e3..da834e955 100644 --- a/dix/ptrveloc_priv.h +++ b/dix/ptrveloc_priv.h @@ -18,11 +18,11 @@ struct _DeviceVelocityRec; * calc mean velocity and decide which motion was along * a more or less straight line */ -typedef struct _MotionTracker { +struct _MotionTracker { double dx, dy; /* accumulated delta for each axis */ int time; /* time of creation */ int dir; /* initial direction bitfield */ -} MotionTracker, *MotionTrackerPtr; +}; /** * contains the run-time data for the predictable scheme, that is, a