From 022f570563d8b067e9638bc91bbd168f4c5cb817 Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Fri, 14 Aug 2015 13:22:17 -0700 Subject: Keep gcc from complaining about uninitialized variables --- passes/memory/memory_unpack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passes/memory') diff --git a/passes/memory/memory_unpack.cc b/passes/memory/memory_unpack.cc index 07ec4564c..a497362bf 100644 --- a/passes/memory/memory_unpack.cc +++ b/passes/memory/memory_unpack.cc @@ -79,7 +79,7 @@ void handle_memory(RTLIL::Module *module, RTLIL::Cell *memory) Const initval = memory->parameters.at("\\INIT"); RTLIL::Cell *last_init_cell = nullptr; SigSpec last_init_data; - int last_init_addr; + int last_init_addr=0; for (int i = 0; i < GetSize(initval) && i/mem->width < (1 << abits); i += mem->width) { Const val = initval.extract(i, mem->width, State::Sx); -- cgit v1.2.3