From d97a1ce1eff291217ca539af570b12997c7ce7af Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 18 Jan 2020 13:32:50 +0000 Subject: [PATCH] removing compilation warning explicitly showing enum origin to avoid confusions even though they have same values. FreeBSD recognised as os in stats point of view. --- lib/irrlicht/source/Irrlicht/CGUIListBox.cpp | 2 +- src/config/hardware_stats.cpp | 3 +++ src/guiengine/widgets/CGUISTKListBox.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp b/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp index f5085be2a..0321f6d7a 100644 --- a/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp +++ b/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp @@ -443,7 +443,7 @@ bool CGUIListBox::OnEvent(const SEvent& event) case EET_LOG_TEXT_EVENT: case EET_USER_EVENT: case EET_JOYSTICK_INPUT_EVENT: - case EGUIET_FORCE_32_BIT: + case EEVENT_TYPE::EGUIET_FORCE_32_BIT: break; default: break; diff --git a/src/config/hardware_stats.cpp b/src/config/hardware_stats.cpp index 9389e6066..df5633dbd 100644 --- a/src/config/hardware_stats.cpp +++ b/src/config/hardware_stats.cpp @@ -311,6 +311,9 @@ void reportHardwareStats() #if defined(__linux__) && !defined(ANDROID) json.add("os_linux", 1); json.add("os_unix", 1); +#elif defined(__FreeBSD__) + json.add("os_freebsd", 1); + json.add("os_unix", 1); #else json.add("os_linux", 0); json.add("os_unix", 0); diff --git a/src/guiengine/widgets/CGUISTKListBox.cpp b/src/guiengine/widgets/CGUISTKListBox.cpp index a4080e512..2469dcc82 100644 --- a/src/guiengine/widgets/CGUISTKListBox.cpp +++ b/src/guiengine/widgets/CGUISTKListBox.cpp @@ -409,7 +409,7 @@ bool CGUISTKListBox::OnEvent(const SEvent& event) case EET_LOG_TEXT_EVENT: case EET_USER_EVENT: case EET_JOYSTICK_INPUT_EVENT: - case EGUIET_FORCE_32_BIT: + case EEVENT_TYPE::EGUIET_FORCE_32_BIT: break; default: break;