summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 18:28:38 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 18:28:38 +0300
commitfaca5a085d096cad4f92d96ff285f4a90c7d82ba (patch)
tree79cb940452508fc0dbbf510b8f13848808a6ddc6 /src/input
parent918e0b367085add041ae9068002bffa6dadf27b5 (diff)
downloadplus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.gz
plus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.bz2
plus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.xz
plus-faca5a085d096cad4f92d96ff285f4a90c7d82ba.zip
Fix compilation with old gcc versions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/keyboardconfig.h4
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;