diff options
author | Jose <jose@zeroc.com> | 2009-02-11 18:09:03 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-02-11 18:09:03 +0100 |
commit | 07f428c5aa338b6bd0dd8ca13c3054d3f4534ecf (patch) | |
tree | 334ffe50d66e90c544e970083dbe1e3088566ae8 /cpp/src/Slice/Util.cpp | |
parent | Bug 3656 - document how to build .NET managed (diff) | |
download | ice-07f428c5aa338b6bd0dd8ca13c3054d3f4534ecf.tar.bz2 ice-07f428c5aa338b6bd0dd8ca13c3054d3f4534ecf.tar.xz ice-07f428c5aa338b6bd0dd8ca13c3054d3f4534ecf.zip |
Minor Fix to 3715
Diffstat (limited to 'cpp/src/Slice/Util.cpp')
-rw-r--r-- | cpp/src/Slice/Util.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp index 106a14d989b..40c04199ac1 100644 --- a/cpp/src/Slice/Util.cpp +++ b/cpp/src/Slice/Util.cpp @@ -255,8 +255,7 @@ Slice::emitRaw(const char* message) vector<string> Slice::filterMcppWarnings(const string& message) { - static const int messagesSize = 2; - static const char* messages[messagesSize] = {"Converted [CR+LF] to [LF]", "End of input with no newline, supplemented newline"}; + static const char* messages[] = {"Converted [CR+LF] to [LF]", "End of input with no newline, supplemented newline", 0}; static const string delimiters = "\n"; @@ -274,7 +273,7 @@ Slice::filterMcppWarnings(const string& message) static const string warningPrefix = "warning:"; if(token.find_first_of(warningPrefix) != string::npos) { - for(int j = 0; j < messagesSize; ++j) + for(int j = 0; messages[j] != 0; ++j) { if(token.find_first_of(messages[j]) != string::npos) { |