diff options
author | hjk <qthjk@ovi.com> | 2013-01-03 15:18:58 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2013-01-03 20:52:40 +0100 |
commit | 67af9cf9a950fc70c1ce8b162e9f11b680ff35c3 (patch) | |
tree | 83715356c6c6be7a6d44d93600ec4017f0e9ef85 /src/libs/3rdparty/cplusplus/TranslationUnit.cpp | |
parent | ad03ebab1977214492c408de00335f5a05cf6fa2 (diff) |
C++: Don't create unused values in the preprocessor.
Change-Id: Ic158cf3b88fb0f8c69c1bc5cf45963e2ae9296e5
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/TranslationUnit.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/TranslationUnit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/3rdparty/cplusplus/TranslationUnit.cpp b/src/libs/3rdparty/cplusplus/TranslationUnit.cpp index 7afef149ef..949badccf5 100644 --- a/src/libs/3rdparty/cplusplus/TranslationUnit.cpp +++ b/src/libs/3rdparty/cplusplus/TranslationUnit.cpp @@ -206,16 +206,16 @@ void TranslationUnit::tokenize() lex(&tk); // Gather where the expansion happens and its length. - unsigned macroOffset = static_cast<unsigned>(strtoul(tk.spell(), 0, 0)); + //unsigned macroOffset = static_cast<unsigned>(strtoul(tk.spell(), 0, 0)); lex(&tk); lex(&tk); // Skip the separating comma - unsigned macroLength = static_cast<unsigned>(strtoul(tk.spell(), 0, 0)); + //unsigned macroLength = static_cast<unsigned>(strtoul(tk.spell(), 0, 0)); lex(&tk); // NOTE: We are currently not using the macro offset and length. They // are kept here for now because of future use. - Q_UNUSED(macroOffset) - Q_UNUSED(macroLength) + //Q_UNUSED(macroOffset) + //Q_UNUSED(macroLength) // Now we need to gather the real line and columns from the upcoming // tokens. But notice this is only relevant for tokens which are expanded |