From 361e16bed2c730f56a3d900300a04bdcc01118a4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 27 Nov 2024 00:11:06 -0800 Subject: [PATCH] Fix some valgrind compile warnings --- vvp/vpi_const.cc | 4 ++-- vvp/vthread.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vvp/vpi_const.cc b/vvp/vpi_const.cc index 175c4e5fe..2b0a3c543 100644 --- a/vvp/vpi_const.cc +++ b/vvp/vpi_const.cc @@ -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 * 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: { diff --git a/vvp/vthread.cc b/vvp/vthread.cc index 8b6ff7713..deee63fd0 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -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 * 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::iterator cur = scope->threads.begin() ; cur != scope->threads.end() ; ++ cur ) {