Skip to content

Commit 0ad80dd

Browse files
committed
Fix a few warnings after vst3 debug cleanup
Signed-off-by: falkTX <[email protected]>
1 parent 999950d commit 0ad80dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

distrho/src/DistrhoPluginVST3.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3822,12 +3822,13 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
38223822
static v3_plugin_view** V3_API create_view(void* self, const char* name)
38233823
{
38243824
d_debug("dpf_edit_controller::create_view => %p %s", self, name);
3825+
3826+
#if DISTRHO_PLUGIN_HAS_UI
38253827
dpf_edit_controller* const controller = *static_cast<dpf_edit_controller**>(self);
38263828

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

3830-
#if DISTRHO_PLUGIN_HAS_UI
38313832
// plugin must be initialized
38323833
PluginVst3* const vst3 = controller->vst3;
38333834
DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, nullptr);
@@ -3874,6 +3875,9 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
38743875
#else
38753876
return nullptr;
38763877
#endif
3878+
3879+
// unused unless debug
3880+
(void)name;
38773881
}
38783882
};
38793883

@@ -4408,6 +4412,9 @@ struct dpf_component : v3_component_cpp {
44084412

44094413
// TODO
44104414
return V3_NOT_IMPLEMENTED;
4415+
4416+
// unused
4417+
(void)io_mode;
44114418
}
44124419

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

0 commit comments

Comments
 (0)