From b99206ac8e1e2dca2fe1ddece31944525565150a Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Wed, 30 Apr 2008 08:44:37 -0700 Subject: [PATCH] avoid two unnecesary compile-time warnings --- design_dump.cc | 3 ++- vvp/vpi_priv.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/design_dump.cc b/design_dump.cc index 31453ba7d..074bbe25d 100644 --- a/design_dump.cc +++ b/design_dump.cc @@ -112,9 +112,10 @@ void NetDelaySrc::dump(ostream&o, unsigned ind) const o << setw(ind) << "" << "specify delay"; if (posedge_) o << " posedge"; if (negedge_) o << " negedge"; - if (is_condit()) + if (is_condit()) { if (has_condit()) o << " if"; else o << " ifnone"; + } o << " src " << "(" << transition_delays_[IVL_PE_01] << "," << transition_delays_[IVL_PE_10] diff --git a/vvp/vpi_priv.cc b/vvp/vpi_priv.cc index ea3d2a1b5..ec629c0cb 100644 --- a/vvp/vpi_priv.cc +++ b/vvp/vpi_priv.cc @@ -37,7 +37,7 @@ static s_vpi_error_info vpip_last_error = { 0, 0, 0, 0, 0, 0, 0 }; /* * The vpip_string function creates a constant string from the pass - * input. This constant string is permanently allocate from an + * input. This constant string is permanently allocated from an * efficient string buffer store. */ struct vpip_string_chunk { @@ -115,7 +115,7 @@ PLI_INT32 vpi_chk_error(p_vpi_error_info info) info->level = vpip_last_error.level; info->message = vpip_last_error.message; info->product = vpi_vlog_info.product; - info->code = ""; + info->code = (char *) ""; info->file = 0; info->line = 0;