summaryrefslogtreecommitdiff
path: root/src/script/common
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-02-03 21:35:08 +0100
committersfan5 <sfan5@live.de>2022-05-12 11:36:50 +0200
commit25373ad294398b752ad0ef4a52a5585a0b957f0b (patch)
tree01a280c12329d4c811c565125c99734c471beb03 /src/script/common
parent26d0c0fd8d06fcb3d2cdf4efadfcf993772a8e87 (diff)
downloadminetest-25373ad294398b752ad0ef4a52a5585a0b957f0b.tar.gz
minetest-25373ad294398b752ad0ef4a52a5585a0b957f0b.tar.bz2
minetest-25373ad294398b752ad0ef4a52a5585a0b957f0b.zip
Remove awful Mingw32 workarounds
Instead a warning is triggered if an affected compiler is detected. closes #12022
Diffstat (limited to 'src/script/common')
-rw-r--r--src/script/common/c_converter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp
index 19734b913..7898b197d 100644
--- a/src/script/common/c_converter.cpp
+++ b/src/script/common/c_converter.cpp
@@ -479,17 +479,9 @@ size_t read_stringlist(lua_State *L, int index, std::vector<std::string> *result
Table field getters
*/
-#if defined(__MINGW32__) && !defined(__MINGW64__)
-/* MinGW 32-bit somehow crashes in the std::set destructor when this
- * variable is thread-local, so just don't do that. */
-static std::set<u64> warned_msgs;
-#endif
-
bool check_field_or_nil(lua_State *L, int index, int type, const char *fieldname)
{
-#if !defined(__MINGW32__) || defined(__MINGW64__)
thread_local std::set<u64> warned_msgs;
-#endif
int t = lua_type(L, index);
if (t == LUA_TNIL)