Fix compile warning from recent patch

This commit is contained in:
Cary R 2015-12-08 22:06:55 -08:00
parent fbeac729af
commit 24d1f49f3e
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#ifndef IVL_parse_types_H #ifndef IVL_parse_types_H
#define IVL_parse_types_H #define IVL_parse_types_H
/* /*
* Copyright (c) 2011,2014 Stephen Williams (steve@icarus.com) * Copyright (c) 2011-2015 Stephen Williams (steve@icarus.com)
* Copyright CERN 2013 / Stephen Williams (steve@icarus.com) * Copyright CERN 2013 / Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
@ -106,8 +106,8 @@ struct adding_term {
// (VHDL-2008 6.4.2.5) // (VHDL-2008 6.4.2.5)
class file_open_info_t { class file_open_info_t {
public: public:
file_open_info_t(ExpString*filename, ExpName*kind = NULL) file_open_info_t(ExpString*filename__, ExpName*kind__ = NULL)
: kind_(kind), filename_(filename) { : kind_(kind__), filename_(filename__) {
// By default files are opened in read-only mode // By default files are opened in read-only mode
if(!kind_) kind_ = new ExpName(perm_string::literal("read_mode")); if(!kind_) kind_ = new ExpName(perm_string::literal("read_mode"));
} }