diff --git a/vvp/array.cc b/vvp/array.cc index 5e81beb8b..b4c53562d 100644 --- a/vvp/array.cc +++ b/vvp/array.cc @@ -368,7 +368,7 @@ void __vpiArray::get_word_value(struct __vpiArrayWord*word, p_vpi_value vp) break; default: - fprintf(stderr, "vpi sorry: format is not implemented"); + fprintf(stderr, "vpi sorry: format is not implemented\n"); assert(false); } } diff --git a/vvp/array_common.cc b/vvp/array_common.cc index adec91db4..59d928df9 100644 --- a/vvp/array_common.cc +++ b/vvp/array_common.cc @@ -84,7 +84,7 @@ vpiHandle __vpiArrayIndex::vpi_iterate(int code) if (code == vpiIndex) { struct __vpiArrayIndex*res; res = new __vpiArrayIndex; - res->index = index; // TODO ? see above comment + res->index = index; // see the comment above res->done = 0; return res; } diff --git a/vvp/vpi_darray.cc b/vvp/vpi_darray.cc index 49a041335..862665599 100644 --- a/vvp/vpi_darray.cc +++ b/vvp/vpi_darray.cc @@ -109,16 +109,16 @@ void __vpiDarrayVar::get_word_value(struct __vpiArrayWord*word, p_vpi_value vp) break; default: - fprintf(stderr, "vpi sorry: format is not implemented"); + fprintf(stderr, "vpi sorry: format is not implemented\n"); assert(false); } } -void __vpiDarrayVar::put_word_value(struct __vpiArrayWord*word, p_vpi_value vp, int flags) +void __vpiDarrayVar::put_word_value(struct __vpiArrayWord*word, p_vpi_value vp, int) { } -vpiHandle __vpiDarrayVar::get_iter_index(struct __vpiArrayIterator*iter, int idx) +vpiHandle __vpiDarrayVar::get_iter_index(struct __vpiArrayIterator*, int idx) { return NULL; } @@ -189,7 +189,7 @@ vpiHandle vpip_make_darray_var(const char*name, vvp_net_t*net) struct __vpiScope*scope = vpip_peek_current_scope(); const char*use_name = name ? vpip_name_string(name) : 0; - class __vpiDarrayVar*obj = new __vpiDarrayVar(scope, use_name, net); + __vpiDarrayVar*obj = new __vpiDarrayVar(scope, use_name, net); return obj; }