From 4ba969f166f297a9401a6a1a8da616044bbb6da4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20Abecasis?= Date: Wed, 16 Sep 2009 20:05:00 +0200 Subject: [PATCH] Fixing some compilation warnings in xml tests Reviewed-by: Peter Hartmann --- tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp | 2 +- tests/auto/xmlpatternsxqts/lib/XSDTSTestCase.h | 2 +- tests/auto/xmlpatternsxqts/lib/XSDTestSuiteHandler.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp b/tests/auto/xmlpatternsxqts/lib/XMLWriter.cpp index 1ab2c80bff..3d1683c887 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 f0e6d48e4e..15430974fc 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 b89427a58a..32bb2b8899 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*/) { -- 2.11.4.GIT