Skip to content

Commit 80e3445

Browse files
[vqm2blif][Warnings] Cleaned Up Warnings in Cleanup.cpp
Fixed a couple of small warnings in vqm2blif which mainly just needed to make certain sections explicit.
1 parent 63675f9 commit 80e3445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/vqm2blif/src/base/cleanup.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void remove_one_lut_nodes ( busvec* buses, std::unordered_map<std::string, int>
297297
t_node_port_association* source_port;
298298
t_node_port_association* prev_port;
299299
netvec* prev_bus;
300-
t_net* prev_net;
300+
t_net* prev_net = nullptr;
301301

302302
netvec* vcc_bus = get_bus_from_hash (hash_table, const_cast<char*>("vcc"), buses);
303303
VTR_ASSERT(vcc_bus != NULL);
@@ -658,7 +658,7 @@ void verify_netlist ( t_node** nodes, int num_nodes, busvec* buses, std::unorder
658658
auto hash_entry = hash_table.find(ref_pin->name);
659659

660660
VTR_ASSERT(hash_entry != hash_table.end());
661-
VTR_ASSERT((unsigned int)hash_entry->second == i);
661+
VTR_ASSERT((unsigned int)hash_entry->second == (unsigned int)i);
662662

663663
for (int j = 0; (unsigned int)j < temp_bus->size(); j++){
664664
temp_net = &(temp_bus->at(j));
@@ -903,4 +903,4 @@ void reorganize_module_node_list(t_module* module)
903903
}
904904

905905
//============================================================================================
906-
//============================================================================================
906+
//============================================================================================

0 commit comments

Comments
 (0)