diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlpatterns/data/qderivedinteger_p.h | 2 | ||||
-rw-r--r-- | src/xmlpatterns/parser/qquerytransformparser.cpp | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/xmlpatterns/data/qderivedinteger_p.h b/src/xmlpatterns/data/qderivedinteger_p.h index 621f061..241abac 100644 --- a/src/xmlpatterns/data/qderivedinteger_p.h +++ b/src/xmlpatterns/data/qderivedinteger_p.h @@ -393,6 +393,8 @@ namespace QPatternist * reason get a linker error with GCC. Using this temporary * variable solves it. */ const StorageType minimum = minInclusive; + // MSVC2010 complains that this is initialised but not referenced. + Q_UNUSED(minimum) if((limitsUsage & LimitUpwards) && num > maxInclusive) diff --git a/src/xmlpatterns/parser/qquerytransformparser.cpp b/src/xmlpatterns/parser/qquerytransformparser.cpp index 6b9194c..0969701 100644 --- a/src/xmlpatterns/parser/qquerytransformparser.cpp +++ b/src/xmlpatterns/parser/qquerytransformparser.cpp @@ -3368,6 +3368,7 @@ yydestruct (yymsg, yytype, yyvaluep, yylocationp, parseInfo) ParserContext *const parseInfo; #endif { + YYUSE (yytype); YYUSE (yyvaluep); YYUSE (yylocationp); YYUSE (parseInfo); @@ -3375,13 +3376,6 @@ yydestruct (yymsg, yytype, yyvaluep, yylocationp, parseInfo) if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); - - switch (yytype) - { - - default: - break; - } } |