summaryrefslogtreecommitdiff
path: root/cpp/src/slice2js/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2js/Main.cpp')
-rw-r--r--cpp/src/slice2js/Main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/slice2js/Main.cpp b/cpp/src/slice2js/Main.cpp
index 03f17331e59..a73738fcee9 100644
--- a/cpp/src/slice2js/Main.cpp
+++ b/cpp/src/slice2js/Main.cpp
@@ -80,7 +80,6 @@ usage(const string& n)
" deprecated: use instead [[\"ice-prefix\"]] metadata.\n"
"--underscore Allow underscores in Slice identifiers\n"
" deprecated: use instead [[\"underscore\"]] metadata.\n"
- "--no-warn Disable all warnings.\n"
;
}
@@ -104,7 +103,6 @@ compile(const vector<string>& argv)
opts.addOpt("d", "debug");
opts.addOpt("", "ice");
opts.addOpt("", "underscore");
- opts.addOpt("", "no-warn");
bool validate = find(argv.begin(), argv.end(), "--validate") != argv.end();
@@ -174,8 +172,6 @@ compile(const vector<string>& argv)
bool underscore = opts.isSet("underscore");
- int warningLevel = opts.isSet("no-warn") ? 0 : 1;
-
if(args.empty())
{
consoleErr << argv[0] << ": error: no input file" << endl;
@@ -339,12 +335,12 @@ compile(const vector<string>& argv)
{
if(useStdout)
{
- Gen gen(icecpp->getBaseName(), includePaths, output, cout, warningLevel);
+ Gen gen(icecpp->getBaseName(), includePaths, output, cout);
gen.generate(p);
}
else
{
- Gen gen(icecpp->getBaseName(), includePaths, output, warningLevel);
+ Gen gen(icecpp->getBaseName(), includePaths, output);
gen.generate(p);
}
}