summaryrefslogtreecommitdiff
path: root/ruby/src/IceRuby
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-02-03 18:10:20 +0100
committerJose <jose@zeroc.com>2017-02-03 18:10:20 +0100
commit7274ebf13c7a1ff3b587598335201c3a4e848c90 (patch)
treead673e775b6ab68d511bcc86cf420c519b65948d /ruby/src/IceRuby
parentConnection::close fixes for C#/Java/JS (diff)
downloadice-7274ebf13c7a1ff3b587598335201c3a4e848c90.tar.bz2
ice-7274ebf13c7a1ff3b587598335201c3a4e848c90.tar.xz
ice-7274ebf13c7a1ff3b587598335201c3a4e848c90.zip
Rework warning suppression to use global meta data
Diffstat (limited to 'ruby/src/IceRuby')
-rw-r--r--ruby/src/IceRuby/Slice.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ruby/src/IceRuby/Slice.cpp b/ruby/src/IceRuby/Slice.cpp
index 1d3b666295c..7c63a86dd6b 100644
--- a/ruby/src/IceRuby/Slice.cpp
+++ b/ruby/src/IceRuby/Slice.cpp
@@ -62,7 +62,6 @@ 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
@@ -117,7 +116,6 @@ 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;
@@ -151,7 +149,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, warningLevel);
+ generate(u, all, checksum, includePaths, out);
u->destroy();
string code = codeStream.str();