# - Disabled due to IoTivity not being ANSI compatible
# - warning C4214: bit field types other than int
# - Disabled due to IoTivity not being ANSI compatible
- env.AppendUnique(CCFLAGS=['/wd4127', '/wd4200', '/wd4201', '/wd4214'])
+ # - warning C4706: assignment within conditional expression
+ # - Disabled due to the widespread usage in IoTivity and low impact.
+ env.AppendUnique(CCFLAGS=['/wd4127', '/wd4200', '/wd4201', '/wd4214', '/wd4706'])
env.AppendUnique(CCFLAGS=['/EHsc'])
static bool CheckSubjectOfCertificate(OicSecCred_t* cred, OicUuid_t deviceID)
{
- OicUuid_t emptyUuid = {.id={0}};
OIC_LOG(DEBUG, TAG, "IN CheckSubjectOfCertificate");
VERIFY_NOT_NULL(TAG, cred, ERROR);
#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
+ const OicUuid_t emptyUuid = { .id = { 0 } };
+
if ( SIGNED_ASYMMETRIC_KEY == cred->credType)
{
if((0 == memcmp(cred->subject.id, emptyUuid.id, sizeof(cred->subject.id))) ||
memcpy(cred->subject.id, deviceID.id, sizeof(deviceID.id));
}
}
+#else
+ OC_UNUSED(deviceID);
#endif
OIC_LOG(DEBUG, TAG, "OUT CheckSubjectOfCertificate");