Browse Source

NativeMessageBox: Silence function pointer cast warning for MinGW

v7.0.9
reuk 2 years ago
parent
commit
4f7e1d40c8
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/native/juce_win32_NativeMessageBox.cpp

+ 2
- 0
modules/juce_gui_basics/native/juce_win32_NativeMessageBox.cpp 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;
}();


Loading…
Cancel
Save