Index: sources/canbus/messageinterpreter.h =================================================================== diff -u -rfee7fabf49befb065c89248c19e15efc9ca194e4 -rc5389647e2259e67f8e6d923f3481d7d3f4eab68 --- sources/canbus/messageinterpreter.h (.../messageinterpreter.h) (revision fee7fabf49befb065c89248c19e15efc9ca194e4) +++ sources/canbus/messageinterpreter.h (.../messageinterpreter.h) (revision c5389647e2259e67f8e6d923f3481d7d3f4eab68) @@ -35,21 +35,22 @@ { Q_OBJECT - bool interpretMessage_HD(const Message &vMessage, GuiActionType &vActionId, QVariantList &vData); - bool interpretMessage_DG(const Message &vMessage, GuiActionType &vActionId, QVariantList &vData); + bool interpretMessage_HD(const Message &vMessage, GuiActionType &vActionId, QVariantList &vData) __attribute_warn_unused_result__; + bool interpretMessage_DG(const Message &vMessage, GuiActionType &vActionId, QVariantList &vData) __attribute_warn_unused_result__; bool getBloodFlowData (const Message &vMessage, types::U32 &vFlowSetPoint, - types::F32 &vMeasuredFlow, types::F32 &vRotorSpeed, types::F32 &vMotorSpeed, types::F32 &vMotorCtlSpeed, types::F32 &vMotorCtlCurrent ); - bool getPowerOffData (const Message &vMessage, quint8 &vShowHide); + types::F32 &vMeasuredFlow, types::F32 &vRotorSpeed, types::F32 &vMotorSpeed, + types::F32 &vMotorCtlSpeed, types::F32 &vMotorCtlCurrent ) __attribute_warn_unused_result__; + bool getPowerOffData (const Message &vMessage, quint8 &vShowHide) __attribute_warn_unused_result__; void printUnhandled (const Message &vMessage); public: explicit MessageInterpreter(QObject *parent = nullptr); // interpret the data into GUI understandable Actions/Data - bool interpretMessage(const Can_Id vCan_Id, const Message &vMessage, GuiActionType &vActionId, QVariantList &vData); - bool interpretMessage(const GuiActionType &vActionId, const QVariantList &vData, QByteArray &vPayload); + bool interpretMessage(const Can_Id vCan_Id, const Message &vMessage, GuiActionType &vActionId, QVariantList &vData) __attribute_warn_unused_result__; + bool interpretMessage(const GuiActionType &vActionId, const QVariantList &vData, QByteArray &vPayload) __attribute_warn_unused_result__; signals: