Skip to content

Commit

Permalink
Fix a few warnings after vst3 debug cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Aug 31, 2022
1 parent 999950d commit 0ad80dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion distrho/src/DistrhoPluginVST3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3822,12 +3822,13 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
static v3_plugin_view** V3_API create_view(void* self, const char* name)
{
d_debug("dpf_edit_controller::create_view => %p %s", self, name);

#if DISTRHO_PLUGIN_HAS_UI
dpf_edit_controller* const controller = *static_cast<dpf_edit_controller**>(self);

d_debug("create_view has contexts %p %p",
controller->hostApplicationFromFactory, controller->hostApplicationFromInitialize);

#if DISTRHO_PLUGIN_HAS_UI
// plugin must be initialized
PluginVst3* const vst3 = controller->vst3;
DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, nullptr);
Expand Down Expand Up @@ -3874,6 +3875,9 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
#else
return nullptr;
#endif

// unused unless debug
(void)name;
}
};

Expand Down Expand Up @@ -4408,6 +4412,9 @@ struct dpf_component : v3_component_cpp {

// TODO
return V3_NOT_IMPLEMENTED;

// unused
(void)io_mode;
}

static int32_t V3_API get_bus_count(void* const self, const int32_t media_type, const int32_t bus_direction)
Expand Down

0 comments on commit 0ad80dd

Please sign in to comment.