diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-07-31 15:49:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-31 16:33:23 +0200 |
commit | 7b1622fc3f00b64b608670c8d3691b0e3fbb71bc (patch) | |
tree | 53baf1ea4135ebeb308d1142acf0932c73e4ed75 /src/nfc/qnx/qnxnfcmanager.cpp | |
parent | a1d86abb9b297e9a6054b1e814e89b78a96a846c (diff) |
QNX: Fix compiler warnings
Change-Id: Ia73b3a89464d5913bec4cc528047283475297083
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/nfc/qnx/qnxnfcmanager.cpp')
-rw-r--r-- | src/nfc/qnx/qnxnfcmanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nfc/qnx/qnxnfcmanager.cpp b/src/nfc/qnx/qnxnfcmanager.cpp index 2852d95d..dd387bef 100644 --- a/src/nfc/qnx/qnxnfcmanager.cpp +++ b/src/nfc/qnx/qnxnfcmanager.cpp @@ -78,7 +78,9 @@ void QNXNFCManager::unregisterForInstance() void QNXNFCManager::unregisterTargetDetection(QObject *obj) { - //TODO another instance of the nearfieldmanager might still want to detect targets + Q_UNUSED(obj) + //TODO another instance of the nearfieldmanager might still + //want to detect targets so we have to do ref counting nfc_unregister_tag_readerwriter(); } @@ -386,9 +388,9 @@ void QNXNFCManager::targetLost(unsigned int targetId) bool QNXNFCManager::startTargetDetection(const QList<QNearFieldTarget::Type> &targetTypes) { + Q_UNUSED(targetTypes) qQNXNFCDebug() << "Start target detection for all types"; //TODO handle the target types - qQNXNFCDebug() << "Starting target detection"; if (nfc_register_tag_readerwriter(TAG_TYPE_ALL) == NFC_RESULT_SUCCESS) { return true; } else { @@ -460,7 +462,7 @@ QNdefMessage QNXNFCManager::decodeMessage(nfc_ndef_message_t *nextMessage) newNdefRecord.setId(QByteArray(recordId)); nfc_get_ndef_record_tnf(newRecord, &typeNameFormat); - QNdefRecord::TypeNameFormat recordTnf; + QNdefRecord::TypeNameFormat recordTnf = QNdefRecord::Unknown; switch (typeNameFormat) { case NDEF_TNF_WELL_KNOWN: recordTnf = QNdefRecord::NfcRtd; break; case NDEF_TNF_EMPTY: recordTnf = QNdefRecord::Empty; break; |