mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-20 11:02:52 +02:00
Silence some more clangd warnings
This commit is contained in:
@@ -188,6 +188,7 @@ tresult PLUGIN_API YaBStream::write(void* buffer,
|
|||||||
return Steinberg::kResultOk;
|
return Steinberg::kResultOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
tresult PLUGIN_API YaBStream::seek(int64 pos, int32 mode, int64* result) {
|
tresult PLUGIN_API YaBStream::seek(int64 pos, int32 mode, int64* result) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case kIBSeekSet:
|
case kIBSeekSet:
|
||||||
|
|||||||
@@ -27,6 +27,8 @@
|
|||||||
// FIXME: When used in a Boost.Containers small vector, GCC somehow complains
|
// FIXME: When used in a Boost.Containers small vector, GCC somehow complains
|
||||||
// that the fields in this class may be uninitialized (during the
|
// that the fields in this class may be uninitialized (during the
|
||||||
// deserialization). This warning only shows up during a unity build.
|
// deserialization). This warning only shows up during a unity build.
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -615,6 +615,7 @@ intptr_t Vst2PluginBridge::dispatch(AEffect* /*plugin*/,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, bool replacing>
|
template <typename T, bool replacing>
|
||||||
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
void Vst2PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) {
|
void Vst2PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) {
|
||||||
// During audio processing we'll write the inputs to shared memory buffers,
|
// During audio processing we'll write the inputs to shared memory buffers,
|
||||||
// and we'll then send this request alongside it with additional information
|
// and we'll then send this request alongside it with additional information
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ Vst2Bridge& get_bridge_instance(const AEffect* plugin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Vst2Bridge::Vst2Bridge(MainContext& main_context,
|
Vst2Bridge::Vst2Bridge(MainContext& main_context,
|
||||||
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
std::string plugin_dll_path,
|
std::string plugin_dll_path,
|
||||||
std::string endpoint_base_dir,
|
std::string endpoint_base_dir,
|
||||||
pid_t parent_pid)
|
pid_t parent_pid)
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ Vst3PluginInstance::Vst3PluginInstance(
|
|||||||
is_initialized(!interfaces.plugin_base) {}
|
is_initialized(!interfaces.plugin_base) {}
|
||||||
|
|
||||||
Vst3Bridge::Vst3Bridge(MainContext& main_context,
|
Vst3Bridge::Vst3Bridge(MainContext& main_context,
|
||||||
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
std::string plugin_dll_path,
|
std::string plugin_dll_path,
|
||||||
std::string endpoint_base_dir,
|
std::string endpoint_base_dir,
|
||||||
pid_t parent_pid)
|
pid_t parent_pid)
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ void WineXdndProxy::end_xdnd() {
|
|||||||
// ignore some more warnings here to get clangd to not complain
|
// ignore some more warnings here to get clangd to not complain
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wpragmas"
|
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||||
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
|
|
||||||
void WineXdndProxy::run_xdnd_loop() {
|
void WineXdndProxy::run_xdnd_loop() {
|
||||||
@@ -657,7 +657,7 @@ std::optional<xcb_window_t> WineXdndProxy::get_xdnd_proxy(
|
|||||||
// `*last_xdnd_window` to this function
|
// `*last_xdnd_window` to this function
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wpragmas"
|
#pragma GCC diagnostic ignored "-Wpragmas"
|
||||||
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||||
|
|
||||||
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||||
|
|||||||
Reference in New Issue
Block a user