summaryrefslogtreecommitdiff
path: root/python/modules
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 /python/modules
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 'python/modules')
-rw-r--r--python/modules/IcePy/Slice.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/modules/IcePy/Slice.cpp b/python/modules/IcePy/Slice.cpp
index 937d2ae344c..b1544ebf5f0 100644
--- a/python/modules/IcePy/Slice.cpp
+++ b/python/modules/IcePy/Slice.cpp
@@ -74,7 +74,6 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
opts.addOpt("", "underscore");
opts.addOpt("", "checksum");
opts.addOpt("", "all");
- opts.addOpt("", "no-warn");
vector<string> files;
try
@@ -133,8 +132,6 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
all = opts.isSet("all");
checksum = opts.isSet("checksum");
- int warningLevel = opts.isSet("no-warn") ? 0 : 1;
-
bool ignoreRedefs = false;
bool keepComments = true;
@@ -172,7 +169,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
// It must be the first or second line.
//
out << "# -*- coding: utf-8 -*-\n";
- generate(u, all, checksum, includePaths, out, warningLevel);
+ generate(u, all, checksum, includePaths, out);
u->destroy();
string code = codeStream.str();