Fix some valgrind compile warnings

This commit is contained in:
Cary R 2024-11-27 00:11:06 -08:00
parent a676078ffc
commit 361e16bed2
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001-2021 Stephen Williams (steve@icarus.com) * Copyright (c) 2001-2024 Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU * and/or modify it in source code form under the terms of the GNU
@ -896,7 +896,7 @@ void parameter_delete(vpiHandle item)
{ {
switch(vpi_get(vpiConstType, item)) { switch(vpi_get(vpiConstType, item)) {
case vpiStringConst: { case vpiStringConst: {
struct __vpiStringParam*rfp = dynamic_cast<__vpiStringParam*>(item); class __vpiStringParam*rfp = dynamic_cast<__vpiStringParam*>(item);
delete rfp; delete rfp;
break; } break; }
case vpiBinaryConst: { case vpiBinaryConst: {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2001-2022 Stephen Williams (steve@icarus.com) * Copyright (c) 2001-2024 Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU * and/or modify it in source code form under the terms of the GNU
@ -670,7 +670,7 @@ static void vthread_free_context(vvp_context_t context, __vpiScope*scope)
} }
#ifdef CHECK_WITH_VALGRIND #ifdef CHECK_WITH_VALGRIND
void contexts_delete(struct __vpiScope*scope) void contexts_delete(class __vpiScope*scope)
{ {
vvp_context_t context = scope->free_contexts; vvp_context_t context = scope->free_contexts;
@ -751,7 +751,7 @@ static void child_delete(vthread_t base)
} }
#endif #endif
void vthreads_delete(struct __vpiScope*scope) void vthreads_delete(class __vpiScope*scope)
{ {
for (std::set<vthread_t>::iterator cur = scope->threads.begin() for (std::set<vthread_t>::iterator cur = scope->threads.begin()
; cur != scope->threads.end() ; ++ cur ) { ; cur != scope->threads.end() ; ++ cur ) {