From 07796b012d13b08ce6c9fef8b3b52261e1733335 Mon Sep 17 00:00:00 2001 From: Jiangtao Hu Date: Thu, 17 Aug 2017 09:52:22 -0700 Subject: [PATCH] map: fix compile warning in -c opt mode. --- modules/map/hdmap/adapter/xml_parser/signals_xml_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/map/hdmap/adapter/xml_parser/signals_xml_parser.cc b/modules/map/hdmap/adapter/xml_parser/signals_xml_parser.cc index e0d17d66dc..9e98b508b6 100644 --- a/modules/map/hdmap/adapter/xml_parser/signals_xml_parser.cc +++ b/modules/map/hdmap/adapter/xml_parser/signals_xml_parser.cc @@ -97,7 +97,7 @@ Status SignalsXmlParser::parse_traffic_lights( std::string stop_line_id; int checker = UtilXmlParser::query_string_attribute( *sub_node, "id", &stop_line_id); - assert(checker == tinyxml2::XML_SUCCESS); + CHECK(checker == tinyxml2::XML_SUCCESS); trafficlight_internal.stop_line_ids.insert(stop_line_id); sub_node = sub_node->NextSiblingElement("objectReference"); } -- GitLab