diff options
author | jaanttil <janne.anttila@digia.com> | 2011-10-05 09:55:56 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-03 14:25:17 (GMT) |
commit | aff964df58e213986cc5c18e4c2e81948345aeeb (patch) | |
tree | 3e96d465ea54edf4dd968f1f2e5784f30b2fdfcf /src/xmlpatterns/api | |
parent | d0a32c943b9ce21de33ab19757cc5f2a994b41c7 (diff) | |
download | Qt-aff964df58e213986cc5c18e4c2e81948345aeeb.zip Qt-aff964df58e213986cc5c18e4c2e81948345aeeb.tar.gz Qt-aff964df58e213986cc5c18e4c2e81948345aeeb.tar.bz2 |
Reduces compiler warnings when compiling for WEC7
Task-number: QTBUG-22512
Change-Id: I17fd0ff83fa23ae3e17597b753819d1f6b5d8446
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/xmlpatterns/api')
-rw-r--r-- | src/xmlpatterns/api/qxmlschema_p.cpp | 1 | ||||
-rw-r--r-- | src/xmlpatterns/api/qxmlschemavalidator.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qxmlschema_p.cpp b/src/xmlpatterns/api/qxmlschema_p.cpp index 8ebde03..c29a55f 100644 --- a/src/xmlpatterns/api/qxmlschema_p.cpp +++ b/src/xmlpatterns/api/qxmlschema_p.cpp @@ -145,6 +145,7 @@ void QXmlSchemaPrivate::load(QIODevice *source, const QUrl &documentUri, const Q m_schemaIsValid = true; } catch (QPatternist::Exception exception) { + Q_UNUSED(exception); m_schemaIsValid = false; } } diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp index 7ba38a8..65815ae 100644 --- a/src/xmlpatterns/api/qxmlschemavalidator.cpp +++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp @@ -202,6 +202,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c try { item = loader.openDocument(source, normalizedUri, d->m_context); } catch (QPatternist::Exception exception) { + Q_UNUSED(exception); return false; } @@ -216,6 +217,7 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c try { reader.read(); } catch (QPatternist::Exception exception) { + Q_UNUSED(exception); return false; } |