mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix warnings from GCC 13 release build (#5637)
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
|
||||
namespace nt::net {
|
||||
|
||||
#if __GNUC__ >= 13
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
|
||||
struct PublishMsg {
|
||||
static constexpr std::string_view kMethodStr = "publish";
|
||||
NT_Publisher pubHandle{0};
|
||||
@@ -57,6 +62,10 @@ struct ClientValueMsg {
|
||||
Value value;
|
||||
};
|
||||
|
||||
#if __GNUC__ >= 13
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
struct ClientMessage {
|
||||
using Contents =
|
||||
std::variant<std::monostate, PublishMsg, UnpublishMsg, SetPropertiesMsg,
|
||||
|
||||
Reference in New Issue
Block a user