diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2020-04-02 07:55:52 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2020-04-02 07:58:26 +0900 |
commit | d3c0b7cd0d04949e39cbbce410949cfe63a2dd2f (patch) | |
tree | e6103def909c37830b4a21c3f0143034f772d73e | |
parent | 505a4d025ac4347f74660b73a8405242c3f1c5c2 (diff) | |
download | iotivity-accepted/tizen/unified/20200407.130847.tar.gz iotivity-accepted/tizen/unified/20200407.130847.tar.bz2 iotivity-accepted/tizen/unified/20200407.130847.zip |
Fix -Wreturn-type build warningsubmit/tizen/20200405.215959submit/tizen/20200403.000136submit/tizen/20200402.005546accepted/tizen/unified/20200407.130847
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 <dh79.pyun@samsung.com>
-rwxr-xr-x | resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c | 5 | ||||
-rw-r--r-- | 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 c13d8e290..7c5f6c872 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 b745659fc..9b3da3034 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, |