From 1749d1096623af9456bddeba57917d88d707b511 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 6 Aug 2012 15:47:35 -0700 Subject: [PATCH] Fix some clang/bison compile warnings. --- vhdlpp/parse.y | 4 ++-- vvp/vpi_darray.cc | 2 +- vvp/vpi_string.cc | 2 +- vvp/vpi_vthr_vector.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index 1e376f2f6..bbe17ae33 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -6,7 +6,7 @@ %parse-param {perm_string parse_library_name} %{ /* - * Copyright (c) 2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2011-2012 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 @@ -388,7 +388,7 @@ adding_operator architecture_body : architecture_body_start K_of IDENTIFIER - { bind_entity_to_active_scope($3, active_scope) } + { bind_entity_to_active_scope($3, active_scope); } K_is block_declarative_items_opt K_begin architecture_statement_part K_end K_architecture_opt identifier_opt ';' { Architecture*tmp = new Architecture(lex_strings.make($1), diff --git a/vvp/vpi_darray.cc b/vvp/vpi_darray.cc index bb0a94a39..006414581 100644 --- a/vvp/vpi_darray.cc +++ b/vvp/vpi_darray.cc @@ -71,7 +71,7 @@ vpiHandle vpip_make_darray_var(const char*name, vvp_net_t*net) struct __vpiScope*scope = vpip_peek_current_scope(); const char*use_name = name ? vpip_name_string(name) : 0; - struct __vpiDarrayVar*obj = new __vpiDarrayVar(scope, use_name, net); + class __vpiDarrayVar*obj = new __vpiDarrayVar(scope, use_name, net); return obj; } diff --git a/vvp/vpi_string.cc b/vvp/vpi_string.cc index d86e64313..109e4a04d 100644 --- a/vvp/vpi_string.cc +++ b/vvp/vpi_string.cc @@ -78,7 +78,7 @@ vpiHandle vpip_make_string_var(const char*name, vvp_net_t*net) struct __vpiScope*scope = vpip_peek_current_scope(); const char*use_name = name ? vpip_name_string(name) : 0; - struct __vpiStringVar*obj = new __vpiStringVar(scope, use_name, net); + class __vpiStringVar*obj = new __vpiStringVar(scope, use_name, net); return obj; } diff --git a/vvp/vpi_vthr_vector.cc b/vvp/vpi_vthr_vector.cc index 73fbbbac2..747c41e28 100644 --- a/vvp/vpi_vthr_vector.cc +++ b/vvp/vpi_vthr_vector.cc @@ -695,6 +695,6 @@ void __vpiVThrStrStack::vpi_get_value(p_vpi_value vp) vpiHandle vpip_make_vthr_str_stack(unsigned depth) { - struct __vpiVThrStrStack*obj = new __vpiVThrStrStack(depth); + class __vpiVThrStrStack*obj = new __vpiVThrStrStack(depth); return obj; }