diff options
author | Bernard Normier <bernard@zeroc.com> | 2017-02-01 21:05:08 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2017-02-01 21:05:08 -0500 |
commit | 60bd3bc7ad509233fb5acc896d7280966a94e400 (patch) | |
tree | 1ede633dc2c119351a782686405058ea4d1bdd73 /ruby/src | |
parent | Better handling of not-running nodes (diff) | |
download | ice-60bd3bc7ad509233fb5acc896d7280966a94e400.tar.bz2 ice-60bd3bc7ad509233fb5acc896d7280966a94e400.tar.xz ice-60bd3bc7ad509233fb5acc896d7280966a94e400.zip |
Fix for IceRuby builds
Diffstat (limited to 'ruby/src')
-rw-r--r-- | ruby/src/IceRuby/Slice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/src/IceRuby/Slice.cpp b/ruby/src/IceRuby/Slice.cpp index 7c63a86dd6b..1d3b666295c 100644 --- a/ruby/src/IceRuby/Slice.cpp +++ b/ruby/src/IceRuby/Slice.cpp @@ -62,6 +62,7 @@ IceRuby_loadSlice(int argc, VALUE* argv, VALUE self) opts.addOpt("", "underscore"); opts.addOpt("", "checksum"); opts.addOpt("", "all"); + opts.addOpt("", "no-warn"); vector<string> files; try @@ -116,6 +117,7 @@ IceRuby_loadSlice(int argc, VALUE* argv, VALUE self) debug = opts.isSet("d") || opts.isSet("debug"); all = opts.isSet("all"); checksum = opts.isSet("checksum"); + int warningLevel = opts.isSet("no-warn") ? 0 : 1; bool ignoreRedefs = false; @@ -149,7 +151,7 @@ IceRuby_loadSlice(int argc, VALUE* argv, VALUE self) // Ruby magic comment to set the file encoding, it must be first or second line // out << "# encoding: utf-8\n"; - generate(u, all, checksum, includePaths, out); + generate(u, all, checksum, includePaths, out, warningLevel); u->destroy(); string code = codeStream.str(); |