Fix clang warnings.

This commit is contained in:
Wilson Snyder 2017-10-14 14:03:12 -04:00
parent a23a5505c4
commit f6a745a4c2
3 changed files with 7 additions and 3 deletions

View File

@ -24,8 +24,10 @@ include Vtop.mk
CPPFLAGS += -MMD -MP
CPPFLAGS += -DVL_DEBUG=1
# 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
CPPFLAGS += -W -Werror -Wall
USER_CPPFLAGS_WALL += -W -Werror -Wall
endif
# See the benchmarking section of bin/verilator.

View File

@ -26,8 +26,10 @@ CPPFLAGS += -DVL_DEBUG=1
# SystemC isn't too clean
CPPFLAGS += -Wno-deprecated
# 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
CPPFLAGS += -W -Werror -Wall
USER_CPPFLAGS_WALL += -W -Werror -Wall
endif
# If you build your own rules from scratch, note you need to include

View File

@ -16,7 +16,7 @@ int main (int argc, char *argv[]) {
Verilated::debug(0);
// 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++) {
topp->eval();