Fix warnings

This commit is contained in:
momo5502
2025-03-18 19:50:13 +01:00
parent 2a9a8eda35
commit ef8a9dae6e
14 changed files with 58 additions and 18 deletions

View File

@@ -4,7 +4,9 @@
#pragma warning(push)
#pragma warning(disable : 4201) // nameless struct/union
#pragma warning(disable : 4702) // unreachable code
#else
#endif
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
@@ -24,8 +26,10 @@
#include "network.hpp"
#include "threading.hpp"
#ifdef OS_WINDOWS
#pragma warning(pop)
#else
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif
#ifdef OS_WINDOWS
#pragma warning(pop)
#endif