# - Disabled due to the widespread usage in IoTivity
# - warning C4200: zero-sized array in struct/union.
# - It is an acceptable approach for variable size structs.
- env.AppendUnique(CCFLAGS=['/wd4127', '/wd4200'])
+ # - warning C4201: nameless struct/union
+ # - 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'])
env.AppendUnique(CCFLAGS=['/EHsc'])
if target_os in ['windows', 'msys_nt']:
libocsrm_env.AppendUnique(LIBPATH = [os.path.join(libocsrm_env.get('BUILD_DIR'), 'resource', 'oc_logger')])
- # Enable W4 but disable the following warnings:
- # - warning C4201: nonstandard extension used: nameless struct/union
- # - Disabled due to the widespread usage in internal IoTivity components as well as external libs.
+ # Enable W4 but disable the following warning:
# - warning C4232: nonstandard extension used: 'read': address of dllimport 'fread' is not static, identity not guaranteed
# - fread, frwrite, etc are provided by the platform and cannot be changed.
- libocsrm_env.AppendUnique(CCFLAGS=['/wd4201', '/wd4232', '/W4', '/WX'])
+ libocsrm_env.AppendUnique(CCFLAGS=['/wd4232', '/W4', '/WX'])
if target_os in ['linux', 'android', 'tizen', 'msys_nt', 'windows'] and libocsrm_env.get('SECURED') == '1':
SConscript('provisioning/SConscript', 'libocsrm_env')