diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-20 10:50:31 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-20 10:50:31 -0230 |
commit | d8f815d2ca431efb3236be5595c2f1f53a8bfac5 (patch) | |
tree | 576d915022bd4298e211c306ae86fad1fbe9e5b7 /cpp/src/Slice/Preprocessor.cpp | |
parent | Bug 3963: Crash if argc == 0 (diff) | |
download | ice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.tar.bz2 ice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.tar.xz ice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.zip |
Bug 3968 - warnings not supressed with --depend
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index ca2c2827dc6..ac77590c7a3 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -269,7 +269,11 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin char* err = mcpp_get_mem_buffer(Err); if(err) { - emitRaw(err); + vector<string> messages = filterMcppWarnings(err); + for(vector<string>::const_iterator i = messages.begin(); i != messages.end(); ++i) + { + emitRaw(i->c_str()); + } } if(status != 0) |