diff options
author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2015-08-14 13:22:17 -0700 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-08-14 23:26:49 +0200 |
commit | 022f570563d8b067e9638bc91bbd168f4c5cb817 (patch) | |
tree | 66029502692ff5a3043f6099297c55aeff0a1f15 /frontends/ast | |
parent | 03500748192dc93583c0e0f95640865603650714 (diff) | |
download | yosys-022f570563d8b067e9638bc91bbd168f4c5cb817.tar.gz yosys-022f570563d8b067e9638bc91bbd168f4c5cb817.tar.bz2 yosys-022f570563d8b067e9638bc91bbd168f4c5cb817.zip |
Keep gcc from complaining about uninitialized variables
Diffstat (limited to 'frontends/ast')
-rw-r--r-- | frontends/ast/simplify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index cc9bbd237..5eb173c9a 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -2102,9 +2102,9 @@ AstNode *AstNode::readmem(bool is_readmemh, std::string mem_filename, AstNode *m AstNode *block = new AstNode(AST_BLOCK); AstNode *meminit = nullptr; - int next_meminit_cursor; + int next_meminit_cursor=0; vector<State> meminit_bits; - int meminit_size; + int meminit_size=0; std::ifstream f; f.open(mem_filename.c_str()); |