if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_compile_flags("-Wno-maybe-uninitialized")
- add_compile_flags("-Wno-error=unused-but-set-variable")
endif()
-add_compile_flags("-Wno-error=type-limits")
-
if(ARCH STREQUAL "amd64")
add_compile_flags("-Wno-format")
elseif(ARCH STREQUAL "arm")
endfunction()
function(allow_warnings __module)
- add_target_compile_flags(${__module} "-Wno-error")
+ # We don't allow warnings in trunk, this needs to be reworked. See CORE-6959.
+ #add_target_compile_flags(${__module} "-Wno-error")
endfunction()
macro(add_asm_files _target)
add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
- allow_warnings(libtiff)
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_target_compile_flags(libtiff "-Wno-unused-but-set-variable")
endif()
add_pch(mesa_main precomp.h SOURCE)
if(NOT MSVC)
- allow_warnings(mesa_main)
add_target_compile_flags(mesa_main "-Wno-type-limits")
endif()
if(NOT MSVC)
add_target_compile_flags(mesa_swrast "-Wno-unused-variable")
- allow_warnings(mesa_swrast)
endif()
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
- add_target_compile_flags(mciwave "-Wno-error=overflow")
+ add_target_compile_flags(mciwave "-Wno-overflow")
endif()
if((ARCH STREQUAL "i386") AND (NOT MSVC))
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
- #add_target_compile_flags(disk_new "-Wno-error -Wno-format -Wno-pointer-sign")
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign")
+ #add_target_compile_flags(disk_new "-Wno-format -Wno-pointer-sign")
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-pointer-sign")
endif()
set_module_type(disk_new kernelmodedriver)
class.rc
${CMAKE_CURRENT_BINARY_DIR}/classpnp.def)
-if((ARCH STREQUAL "i386") AND (NOT MSVC))
- # FIXME: http://www.cmake.org/Bug/view.php?id=12998
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=switch")
-endif()
-
add_pch(classpnp classp.h SOURCE)
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
set_module_type(classpnp kernelmodedriver)
if(NOT MSVC)
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
- #add_target_compile_flags(portcls "-Wno-write-strings -Wno-switch")
- #allow_warnings(portcls)
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-switch -Wno-error")
+ #add_target_compile_flags(cmipci "-Wno-write-strings -Wno-switch")
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-switch")
endif()
add_pch(cmipci precomp.h SOURCE)
add_cd_file(TARGET ntdll_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
- allow_warnings(ntdll_winetest)
add_target_compile_flags(ntdll_winetest "-Wno-format")
endif()