mirror of https://github.com/OpenRCT2/OpenRCT2.git
Disable warnings around incompatible function pointer cast (#9543)
This addresses a compilation issue with newer (8+) mingw. Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
This commit is contained in:
parent
76c10d1806
commit
295a98028e
|
@ -222,7 +222,14 @@ namespace Platform
|
|||
if (hModule != nullptr)
|
||||
{
|
||||
using RtlGetVersionPtr = NTSTATUS(WINAPI*)(PRTL_OSVERSIONINFOW);
|
||||
# if defined(__GNUC__) && __GNUC__ >= 8
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||
# endif
|
||||
auto fn = (RtlGetVersionPtr)GetProcAddress(hModule, "RtlGetVersion");
|
||||
# if defined(__GNUC__) && __GNUC__ >= 8
|
||||
# pragma GCC diagnostic pop
|
||||
# endif
|
||||
if (fn != nullptr)
|
||||
{
|
||||
RTL_OSVERSIONINFOW rovi{};
|
||||
|
|
Loading…
Reference in New Issue