summaryrefslogtreecommitdiffhomepage
path: root/serialize
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:22:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-22 23:22:06 +0200
commitfb914871bf169e8cd6f74cc086cabd5b23e6f739 (patch)
treeaafb1fbade598be29f8dc6ec54455699133fb74b /serialize
parent531a60115fb39f1f3dd7fb45ade070e0611cd003 (diff)
stuff
Diffstat (limited to 'serialize')
-rw-r--r--serialize/json-helper.hpp1
-rw-r--r--serialize/world.cpp10
2 files changed, 4 insertions, 7 deletions
diff --git a/serialize/json-helper.hpp b/serialize/json-helper.hpp
index b1502295..c6dadf53 100644
--- a/serialize/json-helper.hpp
+++ b/serialize/json-helper.hpp
@@ -4,7 +4,6 @@
#include <exception>
#include <filesystem>
#include <nlohmann/json.hpp>
-#include <Corrade/Utility/DebugStl.h>
struct json_helper final {
template<typename t>
diff --git a/serialize/world.cpp b/serialize/world.cpp
index 835a80f8..8b6f84d7 100644
--- a/serialize/world.cpp
+++ b/serialize/world.cpp
@@ -7,10 +7,12 @@
#include <memory>
#include <nlohmann/json.hpp>
-#ifdef __GNUG__
-#pragma GCC diagnostic push
+#if defined _MSC_VER
+#pragma warning(disable : 4996)
+#elif defined __GNUG__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
+
namespace floormat {
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(chunk_coords, x, y)
@@ -70,7 +72,3 @@ void adl_serializer<world>::from_json(const json& j, world& val)
}
} // namespace nlohmann
-
-#ifdef __GNUG__
-#pragma GCC diagnostic pop
-#endif