This warning was observed with clang on GNU/Linux:
resource/csdk/security/src/psinterface.c:80:9: \
warning: expression result unused [-Wunused-value]
OC_STACK_INVALID_PARAM;
Change-Id: I91b17533ddcf04ba7576a4162f4af4e45755fbb9
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18159
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Ibrahim Esmat <iesmat@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
{
if (!databaseName || !payload || (size <= 0))
{
- OC_STACK_INVALID_PARAM;
+ return OC_STACK_INVALID_PARAM;
}
OCStackResult result = OC_STACK_ERROR;