aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pr63/testsuite.sh
diff options
context:
space:
mode:
authorAnton Blanchard <anton@ozlabs.org>2019-10-14 15:21:40 +1100
committertgingold <tgingold@users.noreply.github.com>2019-10-14 06:21:40 +0200
commit62dd7c9e0f60d436c843bc7a654b9c60ef5871cc (patch)
treeee686a9157e86b7126dec6cf5dc4f2098667b6e1 /testsuite/pr63/testsuite.sh
parent9a8c8162b869479017ccb6f642fadce717685fa3 (diff)
downloadghdl-yosys-plugin-62dd7c9e0f60d436c843bc7a654b9c60ef5871cc.tar.gz
ghdl-yosys-plugin-62dd7c9e0f60d436c843bc7a654b9c60ef5871cc.tar.bz2
ghdl-yosys-plugin-62dd7c9e0f60d436c843bc7a654b9c60ef5871cc.zip
Fix a couple of compiler warnings (#62)
I see a few compiler warnings on gcc 9.2: src/ghdl.cc: In function ‘Yosys::RTLIL::SigSpec get_src(std::vector<Yosys::RTLIL::Wire*>&, GhdlSynth::Net)’: src/ghdl.cc:123:43: warning: ‘valzx’ may be used uninitialized in this function [-Wmaybe-uninitialized] 123 | switch(((val01 >> i)&1)+((valzx >> i)&1)*2) | ~~~~~~~^~~~~ src/ghdl.cc:123:26: warning: ‘val01’ may be used uninitialized in this function [-Wmaybe-uninitialized] 123 | switch(((val01 >> i)&1)+((valzx >> i)&1)*2) | ~~~~~~~^~~~~ src/ghdl.cc:99:26: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized] 99 | bits[i] = (val >> i) & 1 ? RTLIL::State::S1 : RTLIL::State::S0; | ~~~~~^~~~~ These both appear to be spurious, but initialize them to 0 to avoid the warning.
Diffstat (limited to 'testsuite/pr63/testsuite.sh')
0 files changed, 0 insertions, 0 deletions