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

This commit is contained in:
J. Nick Koston
2026-03-18 13:35:20 +13:00
committed by Jesse Hills
parent 8bbfadb59a
commit 37f9541f32
+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;
};