Silence some more clangd warnings

This commit is contained in:
Robbert van der Helm
2021-07-14 17:11:27 +02:00
parent a58005252a
commit f292158889
6 changed files with 8 additions and 2 deletions
@@ -188,6 +188,7 @@ tresult PLUGIN_API YaBStream::write(void* buffer,
return Steinberg::kResultOk;
}
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
tresult PLUGIN_API YaBStream::seek(int64 pos, int32 mode, int64* result) {
switch (mode) {
case kIBSeekSet:
@@ -27,6 +27,8 @@
// FIXME: When used in a Boost.Containers small vector, GCC somehow complains
// that the fields in this class may be uninitialized (during the
// 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"
/**
+1
View File
@@ -615,6 +615,7 @@ intptr_t Vst2PluginBridge::dispatch(AEffect* /*plugin*/,
}
template <typename T, bool replacing>
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
void Vst2PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) {
// During audio processing we'll write the inputs to shared memory buffers,
// and we'll then send this request alongside it with additional information
+1
View File
@@ -134,6 +134,7 @@ Vst2Bridge& get_bridge_instance(const AEffect* plugin) {
}
Vst2Bridge::Vst2Bridge(MainContext& main_context,
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
std::string plugin_dll_path,
std::string endpoint_base_dir,
pid_t parent_pid)
+1
View File
@@ -86,6 +86,7 @@ Vst3PluginInstance::Vst3PluginInstance(
is_initialized(!interfaces.plugin_base) {}
Vst3Bridge::Vst3Bridge(MainContext& main_context,
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
std::string plugin_dll_path,
std::string endpoint_base_dir,
pid_t parent_pid)
+2 -2
View File
@@ -279,7 +279,7 @@ void WineXdndProxy::end_xdnd() {
// ignore some more warnings here to get clangd to not complain
#pragma GCC diagnostic push
#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"
void WineXdndProxy::run_xdnd_loop() {
@@ -657,7 +657,7 @@ std::optional<xcb_window_t> WineXdndProxy::get_xdnd_proxy(
// `*last_xdnd_window` to this function
#pragma GCC diagnostic push
#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"
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)