Skip to content

Commit

Permalink
Fix some valgrind compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
caryr committed Nov 27, 2024
1 parent a676078 commit 361e16b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions vvp/vpi_const.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2021 Stephen Williams ([email protected])
* Copyright (c) 2001-2024 Stephen Williams ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
Expand Down Expand Up @@ -896,7 +896,7 @@ void parameter_delete(vpiHandle item)
{
switch(vpi_get(vpiConstType, item)) {
case vpiStringConst: {
struct __vpiStringParam*rfp = dynamic_cast<__vpiStringParam*>(item);
class __vpiStringParam*rfp = dynamic_cast<__vpiStringParam*>(item);
delete rfp;
break; }
case vpiBinaryConst: {
Expand Down
6 changes: 3 additions & 3 deletions vvp/vthread.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2022 Stephen Williams ([email protected])
* Copyright (c) 2001-2024 Stephen Williams ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
Expand Down Expand Up @@ -670,7 +670,7 @@ static void vthread_free_context(vvp_context_t context, __vpiScope*scope)
}

#ifdef CHECK_WITH_VALGRIND
void contexts_delete(struct __vpiScope*scope)
void contexts_delete(class __vpiScope*scope)
{
vvp_context_t context = scope->free_contexts;

Expand Down Expand Up @@ -751,7 +751,7 @@ static void child_delete(vthread_t base)
}
#endif

void vthreads_delete(struct __vpiScope*scope)
void vthreads_delete(class __vpiScope*scope)
{
for (std::set<vthread_t>::iterator cur = scope->threads.begin()
; cur != scope->threads.end() ; ++ cur ) {
Expand Down

0 comments on commit 361e16b

Please sign in to comment.