From d3c0b7cd0d04949e39cbbce410949cfe63a2dd2f Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 2 Apr 2020 07:55:52 +0900 Subject: [PATCH] Fix -Wreturn-type build warning With new toolchain gcc9.2, these cases go to 100% crash. So Must Fix this warning error. Change-Id: I8354a2d6c57d2da16feca5151e1b5ebe99be55fe Signed-off-by: DoHyun Pyun --- resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c | 5 +++-- service/notification/src/provider/NSProviderTopic.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c index c13d8e2..7c5f6c8 100755 --- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c @@ -1320,7 +1320,8 @@ static CAResult_t CALEGattConnectionRetry(const char *remoteAddress) { OIC_LOG(DEBUG, TAG, "IN"); - VERIFY_NON_NULL_VOID(remoteAddress, TAG, "remote address is NULL") + VERIFY_NON_NULL_RET(remoteAddress, TAG, + "remote address is NULL", CA_STATUS_FAILED); CALEGattDisConnect(remoteAddress); CALEWaittillDisconnect(g_isDisconnectedMutex, g_LEDisconnectedCond, 10); @@ -1808,4 +1809,4 @@ CAResult_t CALEClientSendNegotiationMessage(const char* address) //@Todo //it will be implemented when tizen public 3.0 is released. return CA_NOT_SUPPORTED; -} \ No newline at end of file +} diff --git a/service/notification/src/provider/NSProviderTopic.c b/service/notification/src/provider/NSProviderTopic.c index b745659..9b3da30 100644 --- a/service/notification/src/provider/NSProviderTopic.c +++ b/service/notification/src/provider/NSProviderTopic.c @@ -310,7 +310,7 @@ NSResult NSSendTopicList(OCEntityHandlerRequest * entityHandlerRequest) { NS_LOG_V(ERROR, "payloadTopicArray[%d] is NULL", i); NSOICFree(payloadTopicArray); - return; + return NS_ERROR; } OCRepPayloadSetPropString(payloadTopicArray[i], NS_ATTRIBUTE_TOPIC_NAME, -- 2.7.4