add_definitions (-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
add_definitions (-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
add_definitions (-W4)
+ add_definitions (-wd4127) # conditional expression is constant
add_definitions (-wd4244) # conversion from 'type1' to 'type2', possible loss of data
add_definitions (-wd4505) # unreferenced local function has been removed
add_definitions (-wd4800) # forcing value to bool 'true' or 'false' (performance warning)
def retrace_function_body(self, function):
if not function.sideeffects:
+ print ' (void)call;'
return
success = True
success = False
print ' %s = 0; // FIXME' % arg.name
if not success:
+ print ' if (1) {'
self.fail_function(function)
+ print ' }'
self.call_function(function)
for arg in function.args:
if arg.output:
add_definitions(-DNO_VIZ)
+if (MSVC)
+ add_definitions (-wd4127) # conditional expression is constant
+ add_definitions (-wd4131) # uses old-style declaratorion
+endif (MSVC)
+
if (NOT WIN32)
- add_definitions(-fPIC)
+ add_definitions (-fPIC)
endif (NOT WIN32)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})