From 5d6a90d983f736b504dde70289252305529e9452 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 22 Aug 2022 20:59:50 -0700 Subject: [PATCH] [engine] remove compile warnings --- libs/libpcf/src/base/pcf2place.cpp | 2 +- libs/libpcf/src/io/read_xml_io_location_map.cpp | 4 ++-- openfpga/src/base/openfpga_setup_command.cpp | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/libpcf/src/base/pcf2place.cpp b/libs/libpcf/src/base/pcf2place.cpp index b7e490a9c..98ce638ea 100644 --- a/libs/libpcf/src/base/pcf2place.cpp +++ b/libs/libpcf/src/base/pcf2place.cpp @@ -40,7 +40,7 @@ int pcf2place(const PcfData& pcf_data, VTR_LOG_ERROR("PCF contains invalid I/O assignment!\n"); return 1; } else { - VTR_LOG_INFO("PCF basic check passed\n"); + VTR_LOG("PCF basic check passed\n"); } /* Build the I/O place */ diff --git a/libs/libpcf/src/io/read_xml_io_location_map.cpp b/libs/libpcf/src/io/read_xml_io_location_map.cpp index a58e94493..b6de60d76 100644 --- a/libs/libpcf/src/io/read_xml_io_location_map.cpp +++ b/libs/libpcf/src/io/read_xml_io_location_map.cpp @@ -70,8 +70,8 @@ IoLocationMap read_xml_io_location_map(const char* fname) { pugi::xml_node xml_root = get_single_child(doc, "io_coordinates", loc_data); - size_t num_children = std::distance(xml_root.children().begin(), xml_root.children().end()); - /* TODO: Reserve memory space for efficiency */ + /*size_t num_children = std::distance(xml_root.children().begin(), xml_root.children().end()); + * TODO: Reserve memory space for efficiency */ for (pugi::xml_node xml_io : xml_root.children()) { /* Error out if the XML child has an invalid name! */ diff --git a/openfpga/src/base/openfpga_setup_command.cpp b/openfpga/src/base/openfpga_setup_command.cpp index b645a33ac..5fc080ae7 100644 --- a/openfpga/src/base/openfpga_setup_command.cpp +++ b/openfpga/src/base/openfpga_setup_command.cpp @@ -476,8 +476,7 @@ void add_openfpga_setup_commands(openfpga::Shell& shell) { /******************************** * Command 'pcf2place' */ - ShellCommandId pcf2place_cmd_id = add_openfpga_pcf2place_command(shell, - openfpga_setup_cmd_class); + add_openfpga_pcf2place_command(shell, openfpga_setup_cmd_class); /******************************** * Command 'read_openfpga_arch'