From a8883f5c0eaffcf6bfea519318f5f7ae1210ba24 Mon Sep 17 00:00:00 2001
From: Tristan Gingold <tgingold@free.fr>
Date: Sun, 21 Dec 2025 15:31:58 +0100
Subject: [PATCH] ghdl.cc: remove unused variable

---
 src/ghdl.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/ghdl.cc b/src/ghdl.cc
index 27eb641..04c9064 100644
--- a/src/ghdl.cc
+++ b/src/ghdl.cc
@@ -438,7 +438,6 @@ static void import_memory(RTLIL::Module *module, std::vector<RTLIL::Wire *> &net
 
 	//  Count number of read and write ports.
 	//  Extract width, size, abits.
-	int nbr_rd = 0;
 	int nbr_wr = 0;
 	unsigned width = 0;
 	unsigned abits = 0;
@@ -451,7 +450,6 @@ static void import_memory(RTLIL::Module *module, std::vector<RTLIL::Wire *> &net
 		case Id_Mem_Rd_Sync:
 			dat = get_output(port_inst, 1);
 			addr = get_input_net(port_inst, 1);
-			nbr_rd++;
 			break;
 		case Id_Mem_Wr_Sync:
 			dat = get_input_net(port_inst, 4);
-- 
2.55.0

