Commit 180df296 authored by David Antler's avatar David Antler Committed by Randeep

Treat Visual Studio C4133 warning as error

Change-Id: I9cc9019fb90d38913151b9d6678f359ca35c06a4
Signed-off-by: default avatarDavid Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13567Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarDan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: default avatarDave Thaler <dthaler@microsoft.com>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
parent 80c1ca83
...@@ -19,6 +19,10 @@ if env['CC'] == 'cl': ...@@ -19,6 +19,10 @@ if env['CC'] == 'cl':
'/wd4365', # C4365 signed/unsigned mismatch '/wd4365', # C4365 signed/unsigned mismatch
'/wd4503']) # C4503 decorated name length exceeded, name was truncated '/wd4503']) # C4503 decorated name length exceeded, name was truncated
# Enable warnings as errors.
env.AppendUnique(CCFLAGS=[
'/we4133']) # C4133 incompatible type conversion
env.AppendUnique(CCFLAGS=['/EHsc']) env.AppendUnique(CCFLAGS=['/EHsc'])
# Set release/debug flags # Set release/debug flags
......
...@@ -1338,6 +1338,8 @@ static int CmpCredId(const OicSecCred_t * first, const OicSecCred_t *second) ...@@ -1338,6 +1338,8 @@ static int CmpCredId(const OicSecCred_t * first, const OicSecCred_t *second)
static uint16_t GetCredId() static uint16_t GetCredId()
{ {
//Sorts credential list in incremental order of credId //Sorts credential list in incremental order of credId
/** @todo: Remove pragma for VS2013 warning; Investigate fixing LL_SORT macro */
#pragma warning(suppress:4133)
LL_SORT(gCred, CmpCredId); LL_SORT(gCred, CmpCredId);
OicSecCred_t *currentCred = NULL, *credTmp = NULL; OicSecCred_t *currentCred = NULL, *credTmp = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment