diff options
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; } |