csdk: Fix compiler warnings in ocresource.c
authorGeorge Nash <george.nash@intel.com>
Thu, 9 Mar 2017 23:12:14 +0000 (15:12 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 13 Mar 2017 17:55:25 +0000 (17:55 +0000)
commit95d242d63486ab2a1f9c3b7c7161a3ccb85709b6
tree77412231794df377f3631fbae5dbe9ee2ca5386e
parent58ed9cad668618f8404ffd2f5a91bd493b9ed6ee
csdk: Fix compiler warnings in ocresource.c

-Wunused-parameter - fixed using the OC_UNUSED macro
-Wtype-limits - the statment `if (dimensions[0] >= 0)` is
always true because the `dimensions` param  is size_t
which is never negative. Since its always true the if
statment was removed.

Change-Id: I08c9e68e9c688cd9f31bee8d9368a4eec6c8cc01
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17815
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/stack/src/ocresource.c