From d29c51d82bc28886b038329ad8ab10d2b5d0cfde Mon Sep 17 00:00:00 2001 From: Eren121 Date: Fri, 23 Oct 2020 23:13:50 +0200 Subject: [PATCH] Fix warning: control may reach end of non-void function [-Wreturn-type] Fix warning and/or bug in androidKeyToSF() adding a default label for all keys _Keyboard::Unknown_ --- src/SFML/Window/Android/WindowImplAndroid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/Android/WindowImplAndroid.cpp b/src/SFML/Window/Android/WindowImplAndroid.cpp index 40992a055..2d724eccd 100644 --- a/src/SFML/Window/Android/WindowImplAndroid.cpp +++ b/src/SFML/Window/Android/WindowImplAndroid.cpp @@ -664,7 +664,8 @@ Keyboard::Key WindowImplAndroid::androidKeyToSF(int32_t key) case AKEYCODE_BUTTON_THUMBR: case AKEYCODE_BUTTON_START: case AKEYCODE_BUTTON_SELECT: - case AKEYCODE_BUTTON_MODE: return Keyboard::Unknown; + case AKEYCODE_BUTTON_MODE: + default: return Keyboard::Unknown; } }