Fix some clang/bison compile warnings.

This commit is contained in:
Cary R 2012-08-06 15:47:35 -07:00
parent 34719c3163
commit 1749d10966
4 changed files with 5 additions and 5 deletions

View File

@ -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),

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}