IOT-2539 Fix return-type warning 79/22179/2
authorGeorge Nash <george.nash@intel.com>
Wed, 2 Aug 2017 22:59:06 +0000 (15:59 -0700)
committerRick Bell <richard.s.bell@intel.com>
Mon, 18 Sep 2017 17:41:37 +0000 (17:41 +0000)
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 <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21737
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
(cherry picked from commit 9a55ebdaefd544b37c7534b479ceff33ccc9f123)

cloud/samples/client/airconditioner/aircon_controlee.cpp

index 723d3c9..d56b083 100644 (file)
@@ -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)