removed warning message for CA
authorjihwan.seo <jihwan.seo@samsung.com>
Tue, 15 Sep 2015 10:57:07 +0000 (19:57 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Tue, 15 Sep 2015 17:37:55 +0000 (17:37 +0000)
Change-Id: I6823ba9ca9a27deab03e4f8ea3d155c62445704e
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2557
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/connectivity/samples/android/casample/sampleService/src/main/jni/ResourceModel.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c

index b9cd82a..4ac7f96 100644 (file)
@@ -9,6 +9,7 @@
 #include "cainterface.h"
 #include "cacommon.h"
 #include "caadapterutils.h"
+#include "oic_string.h"
 
 #include "org_iotivity_ca_service_RMInterface.h"
 
@@ -182,6 +183,7 @@ CAResult_t SetCredentials()
 JNIEXPORT jint JNI_OnLoad(JavaVM *jvm, void *reserved)
 {
     LOGI("JNI_OnLoad");
+    (void)reserved;
 
     JNIEnv* env;
     if (JNI_OK != (*jvm)->GetEnv(jvm, (void**) &env, JNI_VERSION_1_6))
@@ -198,6 +200,7 @@ JNIEXPORT jint JNI_OnLoad(JavaVM *jvm, void *reserved)
 void JNI_OnUnload(JavaVM *jvm, void *reserved)
 {
     LOGI("JNI_OnUnload");
+    (void)reserved;
 
     JNIEnv* env;
     if (JNI_OK != (*jvm)->GetEnv(jvm, (void**) &env, JNI_VERSION_1_6))
index ef9569d..7b9c16c 100644 (file)
@@ -667,7 +667,7 @@ CAResult_t CALEClientSendMulticastMessageImpl(JNIEnv *env, const uint8_t* data,
         // Wait for LE peripherals to be discovered.
 
         // Number of times to wait for discovery to complete.
-        static int const RETRIES = 5;
+        static size_t const RETRIES = 5;
 
         static uint64_t const TIMEOUT =
             2 * MICROSECS_PER_SEC;  // Microseconds