Skip to content

Commit f324567

Browse files
committed
[libs][arch] fix clang-17 warning
1 parent 4e38274 commit f324567

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5201,7 +5201,7 @@ static void process_vib(pugi::xml_node Vib_node, std::vector<t_physical_tile_typ
52015201
} else if (tmp == "y") {
52025202
seg_group.axis = e_parallel_axis_vib::Y;
52035203
} else {
5204-
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Node), "Unsopported parralel axis type: %s\n", tmp);
5204+
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Node), "Unsopported parralel axis type: %s\n", tmp.c_str());
52055205
}
52065206
}
52075207

libs/libvtrutil/src/vtr_logic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ enum class LogicValue {
3030
NUM_LOGIC_VALUE_TYPES = 4
3131
};
3232

33-
constexpr std::array<const char*, std::size_t(LogicValue::NUM_LOGIC_VALUE_TYPES)> LOGIC_VALUE_STRING = {{"false", "true", "don't care", "unknown"}};
33+
constexpr std::array<std::string_view, std::size_t(LogicValue::NUM_LOGIC_VALUE_TYPES)> LOGIC_VALUE_STRING = {"false", "true", "don't care", "unknown"};
3434

3535
} // namespace vtr

0 commit comments

Comments
 (0)