mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Shut up clang/ccls
This commit is contained in:
@@ -58,8 +58,9 @@ Vst2PluginBridge::Vst2PluginBridge(audioMasterCallback host_callback)
|
|||||||
vst_plugin_path.filename().replace_extension("").string()),
|
vst_plugin_path.filename().replace_extension("").string()),
|
||||||
true),
|
true),
|
||||||
host_callback_function(host_callback),
|
host_callback_function(host_callback),
|
||||||
logger(Logger::create_from_environment(
|
// This weird cast is not needed, but without it clang/ccls won't shut up
|
||||||
create_logger_prefix(sockets.base_dir))),
|
logger(static_cast<Vst2Logger&&>(Logger::create_from_environment(
|
||||||
|
create_logger_prefix(sockets.base_dir)))),
|
||||||
wine_version(get_wine_version()),
|
wine_version(get_wine_version()),
|
||||||
vst_host(
|
vst_host(
|
||||||
config.group
|
config.group
|
||||||
|
|||||||
@@ -31,8 +31,11 @@ Vst3PluginBridge::Vst3PluginBridge()
|
|||||||
generate_endpoint_base(
|
generate_endpoint_base(
|
||||||
plugin_module_path.filename().replace_extension("").string()),
|
plugin_module_path.filename().replace_extension("").string()),
|
||||||
true),
|
true),
|
||||||
logger(Logger::create_from_environment(
|
// This weird cast is not needed, but without it clang/ccls won't shut up
|
||||||
create_logger_prefix(sockets.base_dir))),
|
// TODO: Apparently this is UB even though it works fine, so we should
|
||||||
|
// probably just use composition here instead
|
||||||
|
logger(static_cast<Vst3Logger&&>(Logger::create_from_environment(
|
||||||
|
create_logger_prefix(sockets.base_dir)))),
|
||||||
wine_version(get_wine_version()),
|
wine_version(get_wine_version()),
|
||||||
vst_host(
|
vst_host(
|
||||||
config.group
|
config.group
|
||||||
|
|||||||
Reference in New Issue
Block a user