From 7abc220fb3ed4e668454fcf0612f7c1b912cb581 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 4 Oct 2015 13:41:45 -0400 Subject: [PATCH] Fix C++ 2014 compile warnings. No functional change. --- src/V3Ast.cpp | 2 +- src/V3Cdc.cpp | 2 +- src/V3File.cpp | 2 +- src/V3Graph.cpp | 2 +- src/V3Hashed.cpp | 2 +- src/V3Options.cpp | 2 +- src/V3Order.cpp | 2 +- src/V3SymTable.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/V3Ast.cpp b/src/V3Ast.cpp index 8af35cdac..3a1f90cb7 100644 --- a/src/V3Ast.cpp +++ b/src/V3Ast.cpp @@ -1031,7 +1031,7 @@ void AstNode::dumpTreeFile(const string& filename, bool append, bool doDump) { if (doDump) { { // Write log & close UINFO(2,"Dumping "< logsp (V3File::new_ofstream(filename, append)); + const VL_UNIQUE_PTR logsp (V3File::new_ofstream(filename, append)); if (logsp->fail()) v3fatalSrc("Can't write "<"; *logsp<<" to "< ofp (V3File::new_ofstream(filename)); + const VL_UNIQUE_PTR ofp (V3File::new_ofstream(filename)); if (ofp->fail()) v3fatalSrc("Can't write "< ifp (V3File::new_ifstream_nodepend(filename)); + const VL_UNIQUE_PTR ifp (V3File::new_ifstream_nodepend(filename)); if (ifp->fail()) { UINFO(2," --check-times failed: no input "< logp (V3File::new_ofstream(filename)); + const VL_UNIQUE_PTR logp (V3File::new_ofstream(filename)); if (logp->fail()) v3fatalSrc("Can't write "< logp (V3File::new_ofstream(filename)); + const VL_UNIQUE_PTR logp (V3File::new_ofstream(filename)); if (logp->fail()) v3fatalSrc("Can't write "< dist; diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 45c7cb60a..3f07d5fb5 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -989,7 +989,7 @@ void V3Options::parseOptsFile(FileLine* fl, const string& filename, bool rel) { // Read the specified -f filename and process as arguments UINFO(1,"Reading Options File "< ifp (V3File::new_ifstream(filename)); + const VL_UNIQUE_PTR ifp (V3File::new_ifstream(filename)); if (ifp->fail()) { fl->v3error("Cannot open -f command file: "+filename); return; diff --git a/src/V3Order.cpp b/src/V3Order.cpp index aa79062fe..16bc44359 100644 --- a/src/V3Order.cpp +++ b/src/V3Order.cpp @@ -1646,7 +1646,7 @@ void OrderVisitor::process() { m_graph.dumpDotFilePrefixed("orderg_done"); if (0 && debug()) { string dfilename = v3Global.opt.makeDir()+"/"+v3Global.opt.prefix()+"_INT_order.tree"; - const auto_ptr logp (V3File::new_ofstream(dfilename)); + const VL_UNIQUE_PTR logp (V3File::new_ofstream(dfilename)); if (logp->fail()) v3fatalSrc("Can't write "< logp (V3File::new_ofstream(filename)); + const VL_UNIQUE_PTR logp (V3File::new_ofstream(filename)); if (logp->fail()) v3fatalSrc("Can't write "<