summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-20 10:50:31 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-20 10:50:31 -0230
commitd8f815d2ca431efb3236be5595c2f1f53a8bfac5 (patch)
tree576d915022bd4298e211c306ae86fad1fbe9e5b7 /cpp
parentBug 3963: Crash if argc == 0 (diff)
downloadice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.tar.bz2
ice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.tar.xz
ice-d8f815d2ca431efb3236be5595c2f1f53a8bfac5.zip
Bug 3968 - warnings not supressed with --depend
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp6
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)