diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-29 18:28:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-29 18:28:38 +0300 |
commit | faca5a085d096cad4f92d96ff285f4a90c7d82ba (patch) | |
tree | 79cb940452508fc0dbbf510b8f13848808a6ddc6 /src/input | |
parent | 918e0b367085add041ae9068002bffa6dadf27b5 (diff) | |
download | manaplus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.gz manaplus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.bz2 manaplus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.xz manaplus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.zip |
Fix compilation with old gcc versions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/keyboardconfig.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/keyboardconfig.h b/src/input/keyboardconfig.h index a14afd200..7d32b6299 100644 --- a/src/input/keyboardconfig.h +++ b/src/input/keyboardconfig.h @@ -90,8 +90,8 @@ class KeyboardConfig final #endif // USE_SDL2 } - constexpr static int getKeyValueFromEvent(const SDL_Event &event) - A_WARN_UNUSED + constexpr2 static int getKeyValueFromEvent(const SDL_Event &event) + A_WARN_UNUSED { #ifdef USE_SDL2 return event.key.keysym.scancode; |