mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[3RDPARTY] Make some warnings non-fatal
This commit is contained in:
parent
c2e16abc91
commit
146096cd2e
14 changed files with 76 additions and 0 deletions
8
dll/3rdparty/libtiff/CMakeLists.txt
vendored
8
dll/3rdparty/libtiff/CMakeLists.txt
vendored
|
@ -5,6 +5,14 @@ add_definitions(
|
||||||
-DUSE_WIN32_FILEIO
|
-DUSE_WIN32_FILEIO
|
||||||
-DTIF_PLATFORM_CONSOLE)
|
-DTIF_PLATFORM_CONSOLE)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4311: 'type cast': pointer truncation from 'thandle_t' to 'int'
|
||||||
|
replace_compile_flags("/we4311" " ")
|
||||||
|
|
||||||
|
# error C4312: 'type cast': conversion from 'int' to 'thandle_t' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff
|
||||||
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
||||||
|
|
|
@ -3,6 +3,11 @@ add_definitions(
|
||||||
-D__WINESRC__
|
-D__WINESRC__
|
||||||
-DDIRECT3D_VERSION=0x0900)
|
-DDIRECT3D_VERSION=0x0900)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4133: 'function': incompatible types - from 'D3D_CBUFFER_TYPE *' to 'DWORD *'
|
||||||
|
replace_compile_flags("/we4133" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
|
spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,11 @@ add_definitions(
|
||||||
|
|
||||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'LONG' to 'void *' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
# We name this d3dwine.dll, because the Virtualbox additions ship with a custom wined3d.dll
|
# We name this d3dwine.dll, because the Virtualbox additions ship with a custom wined3d.dll
|
||||||
# and it breaks everything if it is installed.
|
# and it breaks everything if it is installed.
|
||||||
spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB)
|
spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB)
|
||||||
|
|
|
@ -3,6 +3,11 @@ add_definitions(-D__WINESRC__)
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
spec2def(clusapi.dll clusapi.spec)
|
spec2def(clusapi.dll clusapi.spec)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'HCLUSTER' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
clusapi.c
|
clusapi.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/clusapi_stubs.c
|
${CMAKE_CURRENT_BINARY_DIR}/clusapi_stubs.c
|
||||||
|
|
|
@ -10,6 +10,11 @@ add_definitions(
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
|
spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
base64.c
|
base64.c
|
||||||
cert.c
|
cert.c
|
||||||
|
|
|
@ -10,6 +10,11 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
add_idl_headers(mshtml_nsiface_header nsiface.idl)
|
add_idl_headers(mshtml_nsiface_header nsiface.idl)
|
||||||
spec2def(mshtml.dll mshtml.spec ADD_IMPORTLIB)
|
spec2def(mshtml.dll mshtml.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4028: formal parameter 3 different from declaration
|
||||||
|
replace_compile_flags("/we4028" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
conpoint.c
|
conpoint.c
|
||||||
dispex.c
|
dispex.c
|
||||||
|
|
|
@ -7,6 +7,14 @@ add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
|
||||||
spec2def(msi.dll msi.spec ADD_IMPORTLIB)
|
spec2def(msi.dll msi.spec ADD_IMPORTLIB)
|
||||||
generate_idl_iids(msiserver.idl)
|
generate_idl_iids(msiserver.idl)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
|
||||||
|
replace_compile_flags("/we4133" " ")
|
||||||
|
|
||||||
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
action.c
|
action.c
|
||||||
alter.c
|
alter.c
|
||||||
|
|
|
@ -3,6 +3,11 @@ add_definitions(-D__WINESRC__)
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
spec2def(msrle32.dll msrle32.spec)
|
spec2def(msrle32.dll msrle32.spec)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'LPVOID' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
msrle32.c
|
msrle32.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/msrle32.def)
|
${CMAKE_CURRENT_BINARY_DIR}/msrle32.def)
|
||||||
|
|
|
@ -12,6 +12,11 @@ if(NOT MSVC)
|
||||||
add_compile_flags_language("-std=c++11" "CXX")
|
add_compile_flags_language("-std=c++11" "CXX")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4311: 'type cast': pointer truncation from 'HANDLE' to 'INT'
|
||||||
|
replace_compile_flags("/we4311" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x600)
|
add_definitions(-D_WIN32_WINNT=0x600)
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,11 @@ add_definitions(
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x600)
|
add_definitions(-D_WIN32_WINNT=0x600)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
|
||||||
|
replace_compile_flags("/we4133" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
||||||
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libjpeg
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libjpeg
|
||||||
|
|
|
@ -3,6 +3,11 @@ add_definitions(-D_WINE)
|
||||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||||
spec2def(winmm.dll winmm.spec ADD_IMPORTLIB)
|
spec2def(winmm.dll winmm.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
driver.c
|
driver.c
|
||||||
joystick.c
|
joystick.c
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
|
|
||||||
spec2def(midimap.dll midimap.spec)
|
spec2def(midimap.dll midimap.spec)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4133: 'function': incompatible types - from 'LPDWORD' to 'DWORD_PTR *'
|
||||||
|
replace_compile_flags("/we4133" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(midimap MODULE
|
add_library(midimap MODULE
|
||||||
midimap.c
|
midimap.c
|
||||||
midimap.rc
|
midimap.rc
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
|
|
||||||
add_definitions(-DUSE_WINE_TODOS)
|
add_definitions(-DUSE_WINE_TODOS)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4133: 'function': incompatible types - from 'ImageFlags *' to 'UINT *'
|
||||||
|
replace_compile_flags("/we4133" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
brush.c
|
brush.c
|
||||||
customlinecap.c
|
customlinecap.c
|
||||||
|
|
5
sdk/lib/3rdparty/freetype/CMakeLists.txt
vendored
5
sdk/lib/3rdparty/freetype/CMakeLists.txt
vendored
|
@ -5,6 +5,11 @@ add_definitions(
|
||||||
|
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# error C4312: 'type cast': conversion from 'unsigned long' to 'void *' of greater size
|
||||||
|
replace_compile_flags("/we4312" " ")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
src/autofit/autofit.c
|
src/autofit/autofit.c
|
||||||
src/base/ftadvanc.c
|
src/base/ftadvanc.c
|
||||||
|
|
Loading…
Reference in a new issue