[api] Fix ProtoMessage protected destructor compile error on host platform (#14882)

This commit is contained in:
J. Nick Koston
2026-03-17 08:14:36 -10:00
committed by GitHub
parent b083491e74
commit 3826e95506
+4
View File
@@ -442,8 +442,12 @@ class ProtoMessage {
virtual const char *message_name() const { return "unknown"; }
#endif
#ifndef USE_HOST
protected:
#endif
// Non-virtual destructor is protected to prevent polymorphic deletion.
// On host platform, made public to allow value-initialization of std::array
// members (e.g. DeviceInfoResponse::devices) without clang errors.
~ProtoMessage() = default;
};