summaryrefslogtreecommitdiffstats
path: root/src/tools/moc
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-09-24 12:21:27 +0200
committerKai Koehne <kai.koehne@digia.com>2014-09-25 15:42:40 +0200
commit568c26227d09b48fa6066f74d9dfa5d844073a5c (patch)
tree0c45bb013de9b940df86c2e35047a7d8590bbbf8 /src/tools/moc
parentee31bc59bec8b63e681f7fda0e67819458994880 (diff)
Silence moc warnings about 'argument mismatch'
The moc preprocessor is not necessarily fully compatible with the native compiler preprocessor, which can lead to annoying warnings. This fixes a problem particularly with the boost headers that rely on MSVC only preprocessor features (to work around other MSVC preprocessor deficiencies). Task-number: QTBUG-29331 Change-Id: If884452969b512a746c81e235d31636b39c45b27 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/tools/moc')
-rw-r--r--src/tools/moc/preprocessor.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tools/moc/preprocessor.cpp b/src/tools/moc/preprocessor.cpp
index 30fed460eb..087b064c0f 100644
--- a/src/tools/moc/preprocessor.cpp
+++ b/src/tools/moc/preprocessor.cpp
@@ -632,12 +632,6 @@ Symbols Preprocessor::macroExpandIdentifier(Preprocessor *that, SymbolStack &sym
if (macro.isVariadic && arguments.size() == macro.arguments.size() - 1)
arguments += Symbols();
- if (arguments.size() != macro.arguments.size() &&
- // 0 argument macros are a bit special. They are ok if the
- // argument is pure whitespace or empty
- (macro.arguments.size() != 0 || arguments.size() != 1 || !arguments.at(0).isEmpty()))
- that->warning("Macro argument mismatch.");
-
// now replace the macro arguments with the expanded arguments
enum Mode {
Normal,