From f0fd9f8bf41c4cdf0752fe5af942063d816375c7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 15 May 2025 12:33:25 +0200 Subject: [PATCH] dix: fix warning on redefinition of typedefs | ../dix/input_priv.h:56:29: warning: redefinition of typedef 'InputOption' is a C11 feature [-Wtypedef-redefinition] | 56 | typedef struct _InputOption InputOption; | | ^ | ../include/input.h:255:29: note: previous definition is here | 255 | typedef struct _InputOption InputOption; | | ^ | In file included from ../hw/xfree86/common/xf86Cursor.c:36: | ../dix/input_priv.h:57:25: warning: redefinition of typedef 'XI2Mask' is a C11 feature [-Wtypedef-redefinition] | 57 | typedef struct _XI2Mask XI2Mask; | | ^ | ../include/input.h:256:25: note: previous definition is here | 256 | typedef struct _XI2Mask XI2Mask; | | ^ Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- dix/input_priv.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/dix/input_priv.h b/dix/input_priv.h index 65766dc52..69802e077 100644 --- a/dix/input_priv.h +++ b/dix/input_priv.h @@ -53,9 +53,6 @@ SOFTWARE. #include "input.h" -typedef struct _InputOption InputOption; -typedef struct _XI2Mask XI2Mask; - void InitCoreDevices(void); void InitXTestDevices(void);