Fix some valgrind compile warnings

This commit is contained in:
Cary R
2024-11-27 00:11:50 -08:00
parent a676078ffc
commit 361e16bed2
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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
@@ -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: {
+3 -3
View File
@@ -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
@@ -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;
@@ -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 ) {