chipsalliance / dromajo

RISC-V RV64GC emulator designed for RTL co-simulation
Apache License 2.0
210 stars 63 forks source link

GCC 4.8's uninitialized warnings need a little help + style fixes #8

Closed et-tommythorn closed 4 years ago

et-tommythorn commented 4 years ago

The introduction of a return in the previous commit was enough to confuse GCC 4.8 into thinking that the FDTState "s" might be uninitialized. Just zero initialize s to appease GCC.

Fix code style while there (4-indent, space around operators, space after comma).