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 /resource/csdk/connectivity | |
parent | 505a4d025ac4347f74660b73a8405242c3f1c5c2 (diff) | |
download | iotivity-d3c0b7cd0d04949e39cbbce410949cfe63a2dd2f.tar.gz iotivity-d3c0b7cd0d04949e39cbbce410949cfe63a2dd2f.tar.bz2 iotivity-d3c0b7cd0d04949e39cbbce410949cfe63a2dd2f.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>
Diffstat (limited to 'resource/csdk/connectivity')
-rwxr-xr-x | resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c | 5 |
1 files changed, 3 insertions, 2 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 +} |