diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-18 15:21:32 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-18 15:21:32 +0000 |
commit | 7faa941cf9ccec24e10619bf47afcd91c45c9473 (patch) | |
tree | f9d3fa8159d71e1a1319cd75d475e014f780c6f8 /cpp/src/slice2cpp/Gen.cpp | |
parent | tidy (diff) | |
download | ice-7faa941cf9ccec24e10619bf47afcd91c45c9473.tar.bz2 ice-7faa941cf9ccec24e10619bf47afcd91c45c9473.tar.xz ice-7faa941cf9ccec24e10619bf47afcd91c45c9473.zip |
Fixed compile warnings
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 7810f96eb64..d5d3ac331a7 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -23,7 +23,7 @@ using namespace IceUtil; Slice::Gen::Gen(const string& name, const string& base, const string& headerExtension, const string& sourceExtension, const vector<string>& extraHeaders, const string& include, const vector<string>& includePaths, const string& dllExport, const string& dir, - bool imp, bool checksum, bool stream) : + bool imp, bool checksum, bool stream, bool ice) : _base(base), _headerExtension(headerExtension), _sourceExtension(sourceExtension), @@ -33,7 +33,8 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte _dllExport(dllExport), _impl(imp), _checksum(checksum), - _stream(stream) + _stream(stream), + _ice(ice) { for(vector<string>::iterator p = _includePaths.begin(); p != _includePaths.end(); ++p) { @@ -250,6 +251,11 @@ Slice::Gen::generate(const UnitPtr& p) H << "\n#include <Ice/UndefSysMacros.h>"; + if(_ice) + { + C << "\n#include <IceUtil/DisableWarnings.h>"; + } + GlobalIncludeVisitor globalIncludeVisitor(H); p->visit(&globalIncludeVisitor, false); |