diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-04-13 12:32:35 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2017-04-13 12:32:35 -0700 |
commit | 0bf2a43aad594673e5994dba5a894be623d91690 (patch) | |
tree | bd537396fe523b71fb9c82915a29bd3e07d34440 /cpp | |
parent | ignore enumerator redefinitions when necessary (diff) | |
download | ice-0bf2a43aad594673e5994dba5a894be623d91690.tar.bz2 ice-0bf2a43aad594673e5994dba5a894be623d91690.tar.xz ice-0bf2a43aad594673e5994dba5a894be623d91690.zip |
Preprocessor fix
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 9ed4eee10ab..e275bcd3024 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -173,7 +173,10 @@ FILE* Slice::Preprocessor::preprocess(bool keepComments, const string& extraArg) { vector<string> args; - args.push_back(extraArg); + if(!extraArg.empty()) + { + args.push_back(extraArg); + } return preprocess(keepComments, args); } |