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:
parent
14e729545d
commit
4f7e1d40c8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue