diff --git a/ground/src/plugins/uavobjects/uavobject.cpp b/ground/src/plugins/uavobjects/uavobject.cpp index 6f9489076..431ad7e82 100644 --- a/ground/src/plugins/uavobjects/uavobject.cpp +++ b/ground/src/plugins/uavobjects/uavobject.cpp @@ -79,6 +79,7 @@ void UAVObject::initializeFields(QList& fields, quint8* data, q */ void UAVObject::fieldUpdated(UAVObjectField* field) { + Q_UNUSED(field); // emit objectUpdatedAuto(this); // trigger object updated event // emit objectUpdated(this); } @@ -206,7 +207,7 @@ UAVObjectField* UAVObject::getField(const QString& name) } } // If this point is reached then the field was not found - Q_ASSERT_X(0,"UAVObject::getField",QString("Non existant field " + name + "requested. This indicates a bug. Make sure you also have null checking for non-debug code.").toAscii()); + Q_ASSERT_X(0,"UAVObject::getField",QString("Non existant field " + name + " requested. This indicates a bug. Make sure you also have null checking for non-debug code.").toAscii()); return NULL; } diff --git a/ground/src/plugins/uavtalk/uavtalk.cpp b/ground/src/plugins/uavtalk/uavtalk.cpp index 6776a7187..19cef7985 100644 --- a/ground/src/plugins/uavtalk/uavtalk.cpp +++ b/ground/src/plugins/uavtalk/uavtalk.cpp @@ -311,6 +311,8 @@ bool UAVTalk::processInputByte(quint8 rxbyte) */ bool UAVTalk::receiveObject(quint8 type, quint32 objId, quint16 instId, quint8* data, qint32 length) { + Q_UNUSED(length); + UAVObject* obj = NULL; bool error = false; bool allInstances = (instId == ALL_INSTANCES? true : false);