diff options
author | Jose <jose@zeroc.com> | 2009-02-16 15:01:24 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-02-16 15:01:24 +0100 |
commit | 65724c055e64f437b1354f6379adddf7123c6faf (patch) | |
tree | 93a2b1f369ee6e5bfdf2ba470e044a75cee2175b /cpp/src/Slice/Util.cpp | |
parent | Bug 3715 simplification in Slice::filterMcppWarnings (diff) | |
download | ice-65724c055e64f437b1354f6379adddf7123c6faf.tar.bz2 ice-65724c055e64f437b1354f6379adddf7123c6faf.tar.xz ice-65724c055e64f437b1354f6379adddf7123c6faf.zip |
Fix to Slice::filterMcppWarnings
Diffstat (limited to 'cpp/src/Slice/Util.cpp')
-rw-r--r-- | cpp/src/Slice/Util.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp index b5bef1942ed..c85d58b6e3c 100644 --- a/cpp/src/Slice/Util.cpp +++ b/cpp/src/Slice/Util.cpp @@ -266,8 +266,10 @@ Slice::filterMcppWarnings(const string& message) vector<string> in; vector<string> out; IceUtilInternal::splitString(message, "\n", in); + bool skiped; for(vector<string>::const_iterator i = in.begin(); i != in.end(); i++) { + skiped = false; static const string warningPrefix = "warning:"; if(i->find(warningPrefix) != string::npos) { @@ -279,11 +281,15 @@ Slice::filterMcppWarnings(const string& message) // next line should also be skiped it contains the slice line that // produces the skiped warning i++; + skiped = true; break; } } } - out.push_back(*i + "\n"); + if(!skiped) + { + out.push_back(*i + "\n"); + } } return out; } |