fix clang warnings

so that they don't annoy me
This commit is contained in:
Grazvydas Ignotas 2013-07-29 01:54:51 +03:00
parent ebf0e111a8
commit cab9194354
2 changed files with 1 additions and 2 deletions

View file

@ -123,7 +123,6 @@ static const char * const in_sdl_keys[SDLK_LAST] = {
[SDLK_DOWN] = "down", [SDLK_DOWN] = "down",
[SDLK_RIGHT] = "right", [SDLK_RIGHT] = "right",
[SDLK_LEFT] = "left", [SDLK_LEFT] = "left",
[SDLK_DOWN] = "down",
[SDLK_INSERT] = "insert", [SDLK_INSERT] = "insert",
[SDLK_HOME] = "home", [SDLK_HOME] = "home",
[SDLK_END] = "end", [SDLK_END] = "end",

View file

@ -61,7 +61,7 @@ int in_evdev_allow_abs_only;
#define IN_EVDEV_PREFIX "evdev:" #define IN_EVDEV_PREFIX "evdev:"
static const char * const in_evdev_keys[KEY_CNT] = { 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_RESERVED] = "Reserved", [KEY_ESC] = "Esc",
[KEY_1] = "1", [KEY_2] = "2", [KEY_1] = "1", [KEY_2] = "2",
[KEY_3] = "3", [KEY_4] = "4", [KEY_3] = "3", [KEY_4] = "4",