diff options
author | Jose <jose@zeroc.com> | 2017-02-03 18:10:20 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-03 18:10:20 +0100 |
commit | 7274ebf13c7a1ff3b587598335201c3a4e848c90 (patch) | |
tree | ad673e775b6ab68d511bcc86cf420c519b65948d /python/modules | |
parent | Connection::close fixes for C#/Java/JS (diff) | |
download | ice-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.cpp | 5 |
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(); |