From 42c905a3ca29a1e911e7def9c2d9d9b8e95383cd Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 26 Oct 2018 17:17:11 -0400 Subject: Extra C++ warning flags with clang and g++. Fixes 223. --- cpp/src/Slice/Ruby.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/Slice/Ruby.cpp') diff --git a/cpp/src/Slice/Ruby.cpp b/cpp/src/Slice/Ruby.cpp index 8b61d7947b0..40e6d2f3de5 100644 --- a/cpp/src/Slice/Ruby.cpp +++ b/cpp/src/Slice/Ruby.cpp @@ -296,9 +296,9 @@ Slice::Ruby::compile(const vector& argv) out.open(file.c_str()); if(!out) { - ostringstream os; - os << "cannot open`" << file << "': " << IceUtilInternal::errorToString(errno); - throw FileException(__FILE__, __LINE__, os.str()); + ostringstream oss; + oss << "cannot open`" << file << "': " << IceUtilInternal::errorToString(errno); + throw FileException(__FILE__, __LINE__, oss.str()); } FileTracker::instance()->addFile(file); // -- cgit v1.2.3