Clean up warning
authorGeorge Nash <george.nash@intel.com>
Tue, 12 Apr 2016 17:47:08 +0000 (10:47 -0700)
committerJon A. Cruz <jon@joncruz.org>
Fri, 22 Apr 2016 05:40:45 +0000 (05:40 +0000)
commit3044bd5c8d49ff959ba99795cfd73da07ba4ddf0
treeec923c841236ba32dcfb575b30f39bae3130cb5b
parent8d9849e95ed4dc0f38f952dfa8ee9467c914bf3a
Clean up warning

This cleans up the warning capture of variable with non-automatic
storage duration

The warning is given when lambda functions are trying to capture
variables that are static or global. The easy fix is to not
capture the variables. They will still be avalible to the lamba
function without the variable capture.

Change-Id: I00890ddf5cf6932d1114ff4ca305905b4b877cc6
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7761
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
service/resource-hosting/unittest/HostingObjectUnitTest.cpp
service/resource-hosting/unittest/ResourceHostingUnitTest.cpp