mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[3RDPARTY] Suppress MSVC printf format warnings in 3rd-party code
This commit is contained in:
parent
58588b76e2
commit
ad89837c0e
10 changed files with 48 additions and 0 deletions
|
@ -4,6 +4,11 @@ remove_definitions(-D_WIN32_IE=0x600)
|
|||
add_definitions(-D__ROS_LONG64__)
|
||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||
|
||||
if (MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
olecallback.c
|
||||
print.c
|
||||
|
|
|
@ -7,6 +7,11 @@ include_directories(
|
|||
${REACTOS_SOURCE_DIR}/drivers/filesystems/nfs
|
||||
${REACTOS_SOURCE_DIR}/dll/np/nfs)
|
||||
|
||||
if (MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
acl.c
|
||||
callback_server.c
|
||||
|
|
3
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
3
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
|
@ -9,6 +9,9 @@ include_directories(${REACTOS_SOURCE_DIR}/dll/3rdparty/libtirpc/tirpc)
|
|||
if(MSVC)
|
||||
# error C4133: '=': incompatible types - from 'char *' to 'int32_t *'
|
||||
replace_compile_flags("/we4133" " ")
|
||||
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4313")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
|
|
@ -9,6 +9,11 @@ add_definitions(
|
|||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||
spec2def(atl.dll atl.spec ADD_IMPORTLIB)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
atl.c
|
||||
atl30.c
|
||||
|
|
|
@ -10,6 +10,11 @@ add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
|||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||
spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
animate.c
|
||||
button.c
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_CROSSCOMPILING)
|
||||
add_definitions(-DDBGHELP_STATIC_LIB)
|
||||
|
||||
|
|
|
@ -3,6 +3,11 @@ include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|||
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
|
||||
add_definitions(-DWINVER=0x600 -D_WIN32_WINNT=0x601)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
actctx.c
|
||||
atom.c
|
||||
|
|
|
@ -4,6 +4,11 @@ add_definitions(
|
|||
-D_CRT_NONSTDC_NO_DEPRECATE
|
||||
-D__msvcrt_ulong=ULONG)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
cpp.c
|
||||
data.c
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
add_executable(oleacc_winetest main.c testlist.c)
|
||||
set_module_type(oleacc_winetest win32cui)
|
||||
target_link_libraries(oleacc_winetest uuid)
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
|
||||
add_definitions(-DWINVER=0x600 -D_WIN32_WINNT=0x600)
|
||||
|
||||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
add_compile_flags("/wd4477")
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
broadcast.c
|
||||
class.c
|
||||
|
|
Loading…
Reference in a new issue