diff --git a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp index d447e01ac6..7f56f2a82c 100644 --- a/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp +++ b/libuavcan/include/uavcan/protocol/dynamic_node_id_server/event.hpp @@ -153,6 +153,7 @@ public: }; uavcan::StaticAssert::check(); UAVCAN_ASSERT(code < NumTraceCodes); + // coverity[dead_error_line] return (code < NumTraceCodes) ? Strings[static_cast(code)] : "INVALID_EVENT_CODE"; } #endif