summaryrefslogtreecommitdiff
path: root/src/input/keyboardconfig.h
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/keyboardconfig.h
parent918e0b367085add041ae9068002bffa6dadf27b5 (diff)
downloadmv-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.gz
mv-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.bz2
mv-faca5a085d096cad4f92d96ff285f4a90c7d82ba.tar.xz
mv-faca5a085d096cad4f92d96ff285f4a90c7d82ba.zip
Fix compilation with old gcc versions.
Diffstat (limited to 'src/input/keyboardconfig.h')
-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;