diff --git a/vvp/ufunc.cc b/vvp/ufunc.cc index 972efa614..40729ae40 100644 --- a/vvp/ufunc.cc +++ b/vvp/ufunc.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2016 Stephen Williams (steve@icarus.com) + * Copyright (c) 2002-2021 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 @@ -371,7 +371,7 @@ void compile_ufunc_vec4(char*label, char*code, unsigned wid, free(portv); } #ifdef CHECK_WITH_VALGRIND -static map ufunc_map; +static std::map ufunc_map; void exec_ufunc_delete(vvp_code_t euf_code) { @@ -380,7 +380,7 @@ void exec_ufunc_delete(vvp_code_t euf_code) void ufunc_pool_delete(void) { - map::iterator iter; + std::map::iterator iter; for (iter = ufunc_map.begin(); iter != ufunc_map.end(); ++ iter ) { delete iter->first; } diff --git a/vvp/vpi_scope.cc b/vvp/vpi_scope.cc index 7acbc98c1..9d6484537 100644 --- a/vvp/vpi_scope.cc +++ b/vvp/vpi_scope.cc @@ -64,6 +64,7 @@ static void delete_sub_scopes(__vpiScope *scope) case vpiFunction: case vpiTask: contexts_delete(lscope); + // fallthrough case vpiModule: case vpiGenScope: case vpiNamedBegin: