From 2e346040fe46806bc86ca40d418f4769c0d8ea50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 May 2020 06:18:21 +0300 Subject: Add new flags into gc110 flags --- src/input/inputactionmap.h | 4 ++++ tools/ci/flags/gcc10.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 656cd430d..318f70db1 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -388,6 +388,8 @@ static const InputActionData inputActionData addKey(SDLK_AC_BACK), #elif defined(__SWITCH__) joystickButton(11), +#else // defined(ANDROID) + emptyKey, #endif // defined(ANDROID) #else // defined(USE_SDL2) emptyKey, @@ -2824,6 +2826,8 @@ static const InputActionData inputActionData addKey(SDLK_AC_BACK), #elif defined(__SWITCH__) joystickButton(11), +#else // defined(ANDROID) + emptyKey, #endif // defined(ANDROID) #else // defined(USE_SDL2) emptyKey, diff --git a/tools/ci/flags/gcc10.sh b/tools/ci/flags/gcc10.sh index 61caac388..d83ecd4ec 100755 --- a/tools/ci/flags/gcc10.sh +++ b/tools/ci/flags/gcc10.sh @@ -49,7 +49,8 @@ export CXXFLAGS="${CXXFLAGS} -Wbuiltin-macro-redefined" #export CXXFLAGS="${CXXFLAGS} -Wc++11-compat" #export CXXFLAGS="${CXXFLAGS} -Wc++14-compat" #export CXXFLAGS="${CXXFLAGS} -Wc++17-compat" -export CXXFLAGS="${CXXFLAGS} -Wc++1z-compat" +#export CXXFLAGS="${CXXFLAGS} -Wc++1z-compat" +export CXXFLAGS="${CXXFLAGS} -Wc++2a-compat" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Wc-binding-type" #export CXXFLAGS="${CXXFLAGS} -Wc90-c99-compat" @@ -241,6 +242,7 @@ export CXXFLAGS="${CXXFLAGS} -Woverloaded-virtual" # not for C++ #export CXXFLAGS="${CXXFLAGS} -Woverride-init" #export CXXFLAGS="${CXXFLAGS} -Woverride-init-side-effects" +#export CXXFLAGS="${CXXFLAGS} -Woverwrite-recursive" export CXXFLAGS="${CXXFLAGS} -Wpacked" export CXXFLAGS="${CXXFLAGS} -Wpacked-bitfield-compat" export CXXFLAGS="${CXXFLAGS} -Wpacked-not-aligned" -- cgit v1.2.3-60-g2f50