[TOOLS] Fix/suppress all MSVC/x64 warnings (#1525)
[reactos.git] / sdk / tools / widl / CMakeLists.txt
index 40bf916..17239f0 100644 (file)
@@ -35,3 +35,14 @@ list(APPEND SOURCE
 add_definitions(-DINT16=SHORT)
 add_host_tool(widl ${SOURCE})
 target_link_libraries(widl wpphost)
+
+if(MSVC)
+    # Disable warning "'>': signed/unsigned mismatch"
+    add_target_compile_flags(widl "/wd4018")
+
+    # Disable warning "unary minus operator applied to unsigned type, result still unsigned"
+    add_target_compile_flags(widl "/wd4146")
+
+    # Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
+    add_target_compile_flags(widl "/wd4244")
+endif()