summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <maemo@javispedro.com>2014-07-26 18:37:02 +0200
committerJavier <maemo@javispedro.com>2014-07-26 18:37:02 +0200
commitaaf7fb81d16018cac51c67443bd09e499dbf1e7e (patch)
tree6c1bdaad53045c99bf0600fe6ecb87e4ee268180
parentab80ac3b2fbfe04e43282eb505e10d12b3085a07 (diff)
downloadlibgato-aaf7fb81d16018cac51c67443bd09e499dbf1e7e.tar.gz
libgato-aaf7fb81d16018cac51c67443bd09e499dbf1e7e.zip
fix minor warnings
-rw-r--r--gatoperipheral.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gatoperipheral.cpp b/gatoperipheral.cpp
index cc4d6db..2225672 100644
--- a/gatoperipheral.cpp
+++ b/gatoperipheral.cpp
@@ -276,6 +276,7 @@ void GatoPeripheral::readValue(const GatoCharacteristic &characteristic)
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
uint req = d->att->requestRead(characteristic.valueHandle(),
@@ -303,6 +304,7 @@ void GatoPeripheral::readValue(const GatoDescriptor &descriptor)
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
uint req = d->att->requestRead(descriptor.handle(),
@@ -327,6 +329,7 @@ void GatoPeripheral::writeValue(const GatoCharacteristic &characteristic, const
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
switch (type) {
@@ -362,6 +365,7 @@ void GatoPeripheral::writeValue(const GatoDescriptor &descriptor, const QByteArr
GatoService &our_service = d->services[service_handle];
Q_ASSERT(our_service.containsCharacteristic(char_handle));
+ Q_UNUSED(our_service);
if (state() == StateConnected) {
d->att->requestWrite(descriptor.handle(), data,