From 6f878327bf28544e33a90edf3b0ad6da1aa42d7b Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 4 Jun 2017 12:50:25 +0200 Subject: [PATCH] Fix unused ICS_MAX warning --- extern/oics/ICSInputControlSystem.cpp | 2 ++ extern/oics/ICSInputControlSystem.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extern/oics/ICSInputControlSystem.cpp b/extern/oics/ICSInputControlSystem.cpp index a8aedfd2e5..8bb9c46381 100644 --- a/extern/oics/ICSInputControlSystem.cpp +++ b/extern/oics/ICSInputControlSystem.cpp @@ -28,6 +28,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. namespace ICS { + const float ICS_MAX = std::numeric_limits::max(); + InputControlSystem::InputControlSystem(std::string file, bool active , DetectingBindingListener* detectingBindingListener , InputControlSystemLog* log, size_t channelCount) diff --git a/extern/oics/ICSInputControlSystem.h b/extern/oics/ICSInputControlSystem.h index a82a11d751..691a937255 100644 --- a/extern/oics/ICSInputControlSystem.h +++ b/extern/oics/ICSInputControlSystem.h @@ -236,7 +236,7 @@ namespace ICS }; - static const float ICS_MAX = std::numeric_limits::max(); + extern const float ICS_MAX; }