From a05cadcd327bd36a3bf712b9865cbf33e51ad53a Mon Sep 17 00:00:00 2001 From: George Nash Date: Wed, 2 Aug 2017 15:59:06 -0700 Subject: [PATCH] IOT-2539 Fix return-type warning The _worker function expects a void * return type only functions with return type of void do not have to have a return. Since the return value does not appear to be used simply return NULL. Change-Id: I3cee6f7a491320d21b1d70f9a8df0f7b4538087b Signed-off-by: George Nash Reviewed-on: https://gerrit.iotivity.org/gerrit/21737 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Mats Wichmann Reviewed-by: Rick Bell (cherry picked from commit 9a55ebdaefd544b37c7534b479ceff33ccc9f123) --- cloud/samples/client/airconditioner/aircon_controlee.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/samples/client/airconditioner/aircon_controlee.cpp b/cloud/samples/client/airconditioner/aircon_controlee.cpp index 723d3c9..d56b083 100644 --- a/cloud/samples/client/airconditioner/aircon_controlee.cpp +++ b/cloud/samples/client/airconditioner/aircon_controlee.cpp @@ -516,6 +516,8 @@ class FirmwareResource : public Resource // x.org.iotivity.firmware { FirmwareResource *pThread = (FirmwareResource *)pArg; pThread->onUpdateFirmware(); + // the function must return something - NULL will do + return NULL; } void setFirmwareRepresentation(OCRepresentation &rep) -- 2.7.4