Cleaned up the unused-parameter warning
authorGeorge Nash <george.nash@intel.com>
Mon, 11 Apr 2016 17:09:37 +0000 (10:09 -0700)
committerJon A. Cruz <jon@joncruz.org>
Thu, 14 Apr 2016 06:53:36 +0000 (06:53 +0000)
commitc9a7bb4fbf2656133578cfd1d757d4cb8a91fb63
tree7ab1f03ac0cad5ca344007eacd49fa169e1c5d95
parentc1c51d32a35c7334691f719009dfb7b6a42c6484
Cleaned up the unused-parameter warning

unused parameters are typically the result of 3 things
- they are from a call back and are not needed for that instance of
  the call back
- introduced to maintain backward compatability for older APIs
- variables only used in debug mode for debuging reasons

Many projects that try to build without warnings cast the unused
paramenter to a void type to prevent the warning.  The cast can
be added to the project using a #define.

The OC_UNUSED macro has been added to the octypes header file
to be used when in one of the three given scenarios.

In addition the macro has been used to prevent the unused-parameter
warning for several files.

Change-Id: Ib10967df4a135f0863aebbca41479d8e62d1a27b
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7757
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/csdk/stack/include/octypes.h
service/easy-setup/mediator/csdk/unittests/MediatorCSDKTest.cpp
service/easy-setup/mediator/richsdk/src/RemoteEnrolleeResource.cpp
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator_cpp.cpp
service/resource-encapsulation/src/resourceBroker/src/DevicePresence.cpp