From d2928d500d7fc46ddbc03cc9464f2d4c8c6dd5b9 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 17 Apr 2013 17:44:45 -0700 Subject: [PATCH] Remove a few more compile error messages from RHEL5 --- tgt-vvp/stmt_assign.c | 2 +- vhdlpp/expression.cc | 3 ++- vvp/vvp_darray.cc | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tgt-vvp/stmt_assign.c b/tgt-vvp/stmt_assign.c index 6faaa5efd..2ef99a246 100644 --- a/tgt-vvp/stmt_assign.c +++ b/tgt-vvp/stmt_assign.c @@ -512,7 +512,7 @@ static int show_stmt_assign_vector(ivl_statement_t net) { ivl_expr_t rval = ivl_stmt_rval(net); struct vector_info res; - struct vector_info lres; + struct vector_info lres = {0, 0}; struct vec_slice_info*slices = 0; /* If this is a compressed assignment, then get the contents diff --git a/vhdlpp/expression.cc b/vhdlpp/expression.cc index ecd1fe19d..5cb7be4d5 100644 --- a/vhdlpp/expression.cc +++ b/vhdlpp/expression.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2011-2013 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 @@ -18,6 +18,7 @@ */ # include "expression.h" +# include "parse_types.h" # include "scope.h" # include # include diff --git a/vvp/vvp_darray.cc b/vvp/vvp_darray.cc index 3f5151c07..a014ae11d 100644 --- a/vvp/vvp_darray.cc +++ b/vvp/vvp_darray.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Stephen Williams (steve@icarus.com) + * Copyright (c) 2012-2013 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 @@ -131,7 +131,7 @@ void vvp_darray_string::set_word(unsigned adr, const string&value) void vvp_darray_string::get_word(unsigned adr, string&value) { if (adr >= array_.size()) { - value = 0.0; + value = ""; return; }