From: Grazvydas Ignotas Date: Sun, 28 Jul 2013 22:54:51 +0000 (+0300) Subject: fix clang warnings X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cab9194354b6340b4bf0c5154fecc4018a4f2a33;p=libpicofe.git fix clang warnings so that they don't annoy me --- 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",