diff options
author | David Robillard <d@drobilla.net> | 2022-05-29 14:56:15 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-29 14:56:15 -0400 |
commit | d0dbe0b732ba751e6846e2b1676df2f3b55161fd (patch) | |
tree | a5c69c76d97a9d6bfe874c74395ee0b052935498 /src/cocoa_in_qt5.mm | |
parent | 5fac651aebabc9406cd78fe280311f6184a7fa85 (diff) | |
download | suil-d0dbe0b732ba751e6846e2b1676df2f3b55161fd.tar.gz suil-d0dbe0b732ba751e6846e2b1676df2f3b55161fd.tar.bz2 suil-d0dbe0b732ba751e6846e2b1676df2f3b55161fd.zip |
Fix warnings on MacOS
Diffstat (limited to 'src/cocoa_in_qt5.mm')
-rw-r--r-- | src/cocoa_in_qt5.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cocoa_in_qt5.mm b/src/cocoa_in_qt5.mm index 9006c08..5a7e5b0 100644 --- a/src/cocoa_in_qt5.mm +++ b/src/cocoa_in_qt5.mm @@ -51,8 +51,8 @@ public: NSView* view = (NSView*)instance->ui_widget; setCocoaView((NSView*)instance->ui_widget); - setMinimumWidth([view fittingSize].width); - setMinimumHeight([view fittingSize].height); + setMinimumWidth(static_cast<int>([view fittingSize].width)); + setMinimumHeight(static_cast<int>([view fittingSize].height)); if (_idle_iface && _ui_timer == 0) { _ui_timer = this->startTimer(30); @@ -133,6 +133,9 @@ suil_wrapper_new(SuilHost* host, LV2_Feature*** features, unsigned n_features) { + (void)host; + (void)host_type_uri; + QWidget* parent = NULL; for (unsigned i = 0; i < n_features; ++i) { if (!strcmp((*features)[i]->URI, LV2_UI__parent)) { |