From cab9194354b6340b4bf0c5154fecc4018a4f2a33 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Mon, 29 Jul 2013 01:54:51 +0300 Subject: [PATCH] fix clang warnings so that they don't annoy me --- in_sdl.c | 1 - linux/in_evdev.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/in_sdl.c b/in_sdl.c index e1f8753..2cdbd3f 100644 --- a/in_sdl.c +++ b/in_sdl.c @@ -123,7 +123,6 @@ static const char * const in_sdl_keys[SDLK_LAST] = { [SDLK_DOWN] = "down", [SDLK_RIGHT] = "right", [SDLK_LEFT] = "left", - [SDLK_DOWN] = "down", [SDLK_INSERT] = "insert", [SDLK_HOME] = "home", [SDLK_END] = "end", diff --git a/linux/in_evdev.c b/linux/in_evdev.c index 3f30970..fed27f7 100644 --- a/linux/in_evdev.c +++ b/linux/in_evdev.c @@ -61,7 +61,7 @@ int in_evdev_allow_abs_only; #define IN_EVDEV_PREFIX "evdev:" static const char * const in_evdev_keys[KEY_CNT] = { - [0 ... KEY_MAX] = NULL, + // [0 ... KEY_MAX] = NULL, // not necessary [KEY_RESERVED] = "Reserved", [KEY_ESC] = "Esc", [KEY_1] = "1", [KEY_2] = "2", [KEY_3] = "3", [KEY_4] = "4", -- 2.39.2