Fix some compilation warnings

This commit is contained in:
momo5502
2025-01-05 19:27:17 +01:00
parent 4f444a7227
commit 3f00cdb181
5 changed files with 19 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
#pragma once
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable: 4201) // nameless struct/union
#pragma warning(disable: 4702) // unreachable code
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#endif
#include "compiler.hpp"
@@ -21,7 +25,7 @@
#include "threading.hpp"
#ifdef OS_WINDOWS
#pragma comment(lib, "ntdll")
#pragma comment(lib, "ntdll")
extern "C"
{
@@ -37,4 +41,7 @@ extern "C"
_Out_opt_ PULONG ReturnLength
);
}
#pragma warning(pop)
#else
#pragma GCC diagnostic pop
#endif