From 14ee304256d1ebe19e51c842dc893f5b30081069 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 12 Jun 2021 00:35:59 +0200 Subject: [PATCH] Silence spurious maybe unused errors These only show up during unity builds, and they originate from Boost.Container's small vector. The compiler's diagnostic also doesn't make any sense here so it's probably just a weird GCC thing. --- src/common/serialization/vst3/event-list.h | 4 ++++ src/common/serialization/vst3/param-value-queue.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/common/serialization/vst3/event-list.h b/src/common/serialization/vst3/event-list.h index 02a9c97b..1fc84020 100644 --- a/src/common/serialization/vst3/event-list.h +++ b/src/common/serialization/vst3/event-list.h @@ -24,6 +24,10 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +// FIXME: When used in a Boost.Containers small vector, GCC somehow complains +// that the fields in `YaEvent` may be uninitialized (during the +// deserialization). This warning only shows up during a unity build. +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" /** * A wrapper around `DataEvent` for serialization purposes, as this event diff --git a/src/common/serialization/vst3/param-value-queue.h b/src/common/serialization/vst3/param-value-queue.h index cdd38e81..957576ad 100644 --- a/src/common/serialization/vst3/param-value-queue.h +++ b/src/common/serialization/vst3/param-value-queue.h @@ -24,6 +24,10 @@ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +// 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 "-Wmaybe-uninitialized" /** * Wraps around `IParamValueQueue` for serializing a queue containing changes to