Fix clang warnings.
This commit is contained in:
parent
a23a5505c4
commit
f6a745a4c2
|
|
@ -24,8 +24,10 @@ include Vtop.mk
|
||||||
CPPFLAGS += -MMD -MP
|
CPPFLAGS += -MMD -MP
|
||||||
CPPFLAGS += -DVL_DEBUG=1
|
CPPFLAGS += -DVL_DEBUG=1
|
||||||
# Turn on some more flags (when configured appropriately)
|
# Turn on some more flags (when configured appropriately)
|
||||||
|
# For testing inside Verilator, "configure --enable-ccwarn" will do this
|
||||||
|
# automatically; otherwise you may want this unconditionally enabled
|
||||||
ifeq ($(CFG_WITH_CCWARN),yes) # Local... Else don't burden users
|
ifeq ($(CFG_WITH_CCWARN),yes) # Local... Else don't burden users
|
||||||
CPPFLAGS += -W -Werror -Wall
|
USER_CPPFLAGS_WALL += -W -Werror -Wall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# See the benchmarking section of bin/verilator.
|
# See the benchmarking section of bin/verilator.
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,10 @@ CPPFLAGS += -DVL_DEBUG=1
|
||||||
# SystemC isn't too clean
|
# SystemC isn't too clean
|
||||||
CPPFLAGS += -Wno-deprecated
|
CPPFLAGS += -Wno-deprecated
|
||||||
# Turn on some more flags (when configured appropriately)
|
# Turn on some more flags (when configured appropriately)
|
||||||
|
# For testing inside Verilator, "configure --enable-ccwarn" will do this
|
||||||
|
# automatically; otherwise you may want this unconditionally enabled
|
||||||
ifeq ($(CFG_WITH_CCWARN),yes) # Local... Else don't burden users
|
ifeq ($(CFG_WITH_CCWARN),yes) # Local... Else don't burden users
|
||||||
CPPFLAGS += -W -Werror -Wall
|
USER_CPPFLAGS_WALL += -W -Werror -Wall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If you build your own rules from scratch, note you need to include
|
# If you build your own rules from scratch, note you need to include
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ int main (int argc, char *argv[]) {
|
||||||
Verilated::debug(0);
|
Verilated::debug(0);
|
||||||
|
|
||||||
// Make sure public tag worked
|
// Make sure public tag worked
|
||||||
if (Vt_param_public_p::INPACK == Vt_param_public_p::INPACK) {}
|
if (static_cast<bool>(Vt_param_public_p::INPACK)) {}
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
topp->eval();
|
topp->eval();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue