diff options
-rw-r--r-- | src/input/inputactionmap.h | 8 | ||||
-rwxr-xr-x | tools/ci/flags/gcc10.sh | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 926a98e6b..656cd430d 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -388,9 +388,9 @@ static const InputActionData inputActionData addKey(SDLK_AC_BACK), #elif defined(__SWITCH__) joystickButton(11), -#else +#endif // defined(ANDROID) +#else // defined(USE_SDL2) emptyKey, -#endif #endif // defined(USE_SDL2) Input::GRP_DEFAULT, &Actions::quit, @@ -2824,9 +2824,9 @@ static const InputActionData inputActionData addKey(SDLK_AC_BACK), #elif defined(__SWITCH__) joystickButton(11), -#else +#endif // defined(ANDROID) +#else // defined(USE_SDL2) emptyKey, -#endif #endif // defined(USE_SDL2) Input::GRP_GUICHAN, nullptr, diff --git a/tools/ci/flags/gcc10.sh b/tools/ci/flags/gcc10.sh index f85c044f1..61caac388 100755 --- a/tools/ci/flags/gcc10.sh +++ b/tools/ci/flags/gcc10.sh @@ -28,6 +28,7 @@ export CXXFLAGS="${CXXFLAGS} -Walloca" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wampersand" #export CXXFLAGS="${CXXFLAGS} -Wargument-mismatch" +export CXXFLAGS="${CXXFLAGS} -Warith-conversion" export CXXFLAGS="${CXXFLAGS} -Warray-bounds" # +++ need try it export CXXFLAGS="${CXXFLAGS} -Warray-bounds=2" |