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.
This commit is contained in:
Robbert van der Helm
2021-06-12 00:35:59 +02:00
parent 75dee9991c
commit 14ee304256
2 changed files with 8 additions and 0 deletions
@@ -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
@@ -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