#define OC_RSRVD_RESOURCE_TYPE_RDPUBLISH "oic.wk.rdPub"
/**
+ * Mark a parameter as unused. Used to prevent unused variable compiler warnings.
+ * Used in three cases:
+ * 1. in callbacks when one of the parameters are unused
+ * 2. when due to code changes a functions parameter is no longer
+ * used but must be left in place for backward compatibility
+ * reasons.
+ * 3. a variable is only used in the debug build variant and would
+ * give a build warning in release mode.
+ */
+#define OC_UNUSED(x) (void)(x)
+
+/**
* These enums (OCTransportAdapter and OCTransportFlags) must
* be kept synchronized with OCConnectivityType (below) as well as
* CATransportAdapter and CATransportFlags (in CACommon.h).
};
//callbacks
-void OCProvisioningStatusCallback(EasySetupInfo *easySetupInfo) {}
+void OCProvisioningStatusCallback(EasySetupInfo *easySetupInfo) {
+ OC_UNUSED(easySetupInfo);
+}
/* Test cases for prov_adapter*/
const HeaderOptions& /*headerOptions*/, const OCRepresentation& rep,
const int eCode)
{
+ OC_UNUSED(rep);
OIC_LOG_V (DEBUG, ES_REMOTE_ENROLLEE_RES_TAG, "checkProvInformationCb : %s, eCode = %d",
rep.getUri().c_str(),
eCode);
void easySetupStatusCallback (std::shared_ptr< EasySetupStatus > easySetupStatus)
{
+ OC_UNUSED(easySetupStatus);
OIC_LOG_V(DEBUG, ES_SAMPLE_APP_TAG, "easySetupStatusCallback status is Status = %d",
easySetupStatus->getEasySetupState());
void DevicePresence::subscribeCB(OCStackResult ret,
const unsigned int seq, const std::string & hostAddress)
{
+ OC_UNUSED(seq);
+ OC_UNUSED(hostAddress);
+
OIC_LOG_V(DEBUG, BROKER_TAG, "subscribeCB()");
OIC_LOG_V(DEBUG, BROKER_TAG, "Received presence CB from: %s",hostAddress.c_str());
OIC_LOG_V(DEBUG, BROKER_TAG, "In subscribeCB: %d",ret);