diff options
author | Jose <jose@zeroc.com> | 2017-02-01 23:16:30 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-01 23:16:30 +0100 |
commit | ca131951f8d81ea3da13277172a24234b5c848ea (patch) | |
tree | 28b8d9ad6a09f550ef43f3b24df8048da8e70d7d /cpp/src/Slice/RubyUtil.cpp | |
parent | Added entries for support of try-with-resources/with statement in Java/Python (diff) | |
download | ice-ca131951f8d81ea3da13277172a24234b5c848ea.tar.bz2 ice-ca131951f8d81ea3da13277172a24234b5c848ea.tar.xz ice-ca131951f8d81ea3da13277172a24234b5c848ea.zip |
Add --no-warn option to Slice compilers
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp index 9c1a32d8e77..f0cbcdc7fb1 100644 --- a/cpp/src/Slice/RubyUtil.cpp +++ b/cpp/src/Slice/RubyUtil.cpp @@ -52,7 +52,7 @@ class CodeVisitor : public ParserVisitor { public: - CodeVisitor(IceUtilInternal::Output&); + CodeVisitor(IceUtilInternal::Output&, int); virtual bool visitModuleStart(const ModulePtr&); virtual void visitModuleEnd(const ModulePtr&); @@ -184,7 +184,8 @@ splitScopedName(const string& scoped) // // CodeVisitor implementation. // -Slice::Ruby::CodeVisitor::CodeVisitor(Output& out) : +Slice::Ruby::CodeVisitor::CodeVisitor(Output& out, int warningLevel) : + ParserVisitor(warningLevel), _out(out) { } @@ -1445,7 +1446,8 @@ Slice::Ruby::CodeVisitor::collectExceptionMembers(const ExceptionPtr& p, MemberI } void -Slice::Ruby::generate(const UnitPtr& un, bool all, bool checksum, const vector<string>& includePaths, Output& out) +Slice::Ruby::generate(const UnitPtr& un, bool all, bool checksum, const vector<string>& includePaths, Output& out, + int warningLevel) { out << nl << "require 'Ice'"; @@ -1465,7 +1467,7 @@ Slice::Ruby::generate(const UnitPtr& un, bool all, bool checksum, const vector<s } } - CodeVisitor codeVisitor(out); + CodeVisitor codeVisitor(out, warningLevel); un->visit(&codeVisitor, false); if(checksum) |