summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsxqts/lib
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-09-16 18:05:00 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-09-21 15:04:42 (GMT)
commit4ba969f166f297a9401a6a1a8da616044bbb6da4 (patch)
tree02c585e5ab6cd681a60499f24523fd1e8d5244ae /tests/auto/xmlpatternsxqts/lib
parentfab5f4b751efa7d2289a37ab1b574a5c97bfb260 (diff)
downloadQt-4ba969f166f297a9401a6a1a8da616044bbb6da4.zip
Qt-4ba969f166f297a9401a6a1a8da616044bbb6da4.tar.gz
Qt-4ba969f166f297a9401a6a1a8da616044bbb6da4.tar.bz2
Fixing some compilation warnings in xml tests
Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto/xmlpatternsxqts/lib')
-rw-r--r--tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp2
-rw-r--r--tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h2
-rw-r--r--tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp b/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp
index 1ab2c80..3d1683c 100644
--- a/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp
+++ b/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp
@@ -311,7 +311,7 @@ public:
d->errorString = d->device()->errorString(); \
return false; \
} \
- else
+ else do {} while (false)
XMLWriter::XMLWriter(QIODevice *outStream) : d(new Private(outStream))
{
diff --git a/tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h b/tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h
index f0e6d48..1543097 100644
--- a/tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h
+++ b/tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h
@@ -115,7 +115,7 @@ namespace QPatternistSDK
void setName(const QString &name);
void setSchemaUri(const QUrl &uri);
void setInstanceUri(const QUrl &uri);
- void setTestCasePath(const QUrl &uri) {}
+ void setTestCasePath(const QUrl & /* uri */) {}
void setContextItemSource(const QUrl &uri);
void addBaseLine(TestBaseLine *lines);
diff --git a/tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp b/tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp
index b89427a..32bb2b8 100644
--- a/tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp
+++ b/tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp
@@ -871,7 +871,7 @@ bool XSDTestSuiteHandler::startElement(const QString &namespaceURI,
return true;
}
-bool XSDTestSuiteHandler::endElement(const QString &namespaceURI,
+bool XSDTestSuiteHandler::endElement(const QString &/*namespaceURI*/,
const QString &localName,
const QString &/*qName*/)
{