diff --git a/src/input/controller.h b/src/input/controller.h index 71766a34..8404e91f 100644 --- a/src/input/controller.h +++ b/src/input/controller.h @@ -343,6 +343,7 @@ public: case InputType::JoystickKey:/***/*this << InputProfile::JoystickKey/***/(joy, (int)i, T((int)i).ToString()); break; case InputType::MouseAxis:/*****/*this << InputProfile::MouseAxis/*****/(/***/(int)i, T((int)i).ToString()); break; case InputType::JoystickAxis:/**/*this << InputProfile::JoystickAxis/**/(joy, (int)i, T((int)i).ToString()); break; + default: break; } } } diff --git a/src/sys/threadbase.h b/src/sys/threadbase.h index 1b0d24b7..b232aa61 100644 --- a/src/sys/threadbase.h +++ b/src/sys/threadbase.h @@ -81,11 +81,12 @@ public: #endif } - //Will not block if another thread has already locked --------------------- + // Will not block if another thread has already locked --------------------- bool try_lock() { #if !defined(LOL_FEATURE_THREADS) || !LOL_FEATURE_THREADS /* Nothing */ + return false; #elif LOL_FEATURE_CXX11_THREADS return m_mutex.try_lock(); #elif defined HAVE_PTHREAD_H