Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fpic")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fpic -std=gnu99")
SET(CMAKE_CXX_FLAGS "${EXTRA_CXXFLAGS} -std=gnu++11 -fPIC -fvisibility=hidden")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
printf(" Resetting Selected Owned Device..\n");
OCStackResult rst = OCResetDevice((void *) g_ctx, DISCOVERY_TIMEOUT,
- getDevInst((const OCProvisionDev_t *) g_own_list, dev_num), syncDeviceCB);
+ getDevInst((const OCProvisionDev_t *) g_own_list, dev_num), syncDeviceCB);
if (OC_STACK_OK != rst)
{
D2D_LOGD( "OCResetDevice API error: %d", rst);