summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2009-02-09 20:54:21 +0100
committerJose <jose@zeroc.com>2009-02-09 20:54:21 +0100
commitb7441f24c28a13b28b4c6a3630567876b2a209eb (patch)
treee4605c9715f41c7c1d8fdb3692c05a92db3f8915 /cpp/src/Slice/Preprocessor.cpp
parentSupport for serializable and protobuf metadata (from cs_serial branch) (diff)
downloadice-b7441f24c28a13b28b4c6a3630567876b2a209eb.tar.bz2
ice-b7441f24c28a13b28b4c6a3630567876b2a209eb.tar.xz
ice-b7441f24c28a13b28b4c6a3630567876b2a209eb.zip
Fix 3715 - Preprocessor warnings treated as errors by Eclipse plugin
Diffstat (limited to 'cpp/src/Slice/Preprocessor.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 6d47a0c689d..95432a9cee7 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -150,7 +150,11 @@ Slice::Preprocessor::preprocess(bool keepComments)
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)