From 37f2b8044f2c1805dadf6590d178167d4f45c998 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 10 Jun 2015 13:06:42 +0300 Subject: [PATCH] Coverity 1304854 --- .../include/uavcan/protocol/dynamic_node_id_server/event.hpp | 1 + 1 file changed, 1 insertion(+) 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