Fix compile warnings in srmutility unittest
authorRavi Nanjundappa <nravi.n@samsung.com>
Thu, 18 Jun 2015 06:06:43 +0000 (11:36 +0530)
committerErich Keane <erich.keane@intel.com>
Thu, 18 Jun 2015 16:41:32 +0000 (16:41 +0000)
Unit test was emitting a warning due to type mismatch of the constant.
Corrected it by explicitly using the proper type.

Change-Id: I58a5aa4bacf551aeebf011069a38f47ed3888814
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1336
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/security/unittest/srmutility.cpp

index 25c0a1f..5e4b1fb 100644 (file)
@@ -57,7 +57,7 @@ TEST(ParseRestQueryTest, ParseRestMultipleQuery)
     printf("\n");
     while(GetNextQuery(&parseIter))
     {
-        EXPECT_NE(0,  parseIter.pi.segment_length);
+        EXPECT_NE(static_cast<size_t>(0),  parseIter.pi.segment_length);
 
         strncpy(attr, (char *)parseIter.attrPos, parseIter.attrLen);
         strncpy(val, (char *)parseIter.valPos, parseIter.valLen);