1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

NativeMessageBox: Silence function pointer cast warning for MinGW

This commit is contained in:
reuk 2023-02-27 11:35:58 +00:00
parent 14e729545d
commit 4f7e1d40c8
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -214,8 +214,10 @@ std::unique_ptr<ScopedMessageBoxInterface> ScopedMessageBoxInterface::create (co
LoadLibraryA (comctl);
const auto comctlModule = GetModuleHandleA (comctl);
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wcast-function-type")
if (comctlModule != nullptr)
return (TaskDialogIndirectFunc) GetProcAddress (comctlModule, "TaskDialogIndirect");
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
return nullptr;
}();