mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[WINDOWSCODECS] It turns out that /wd4133 is not enough to demote the error; we need to use remove_target_compile_option() to completely remove the /we4133 flag.
Addendum to commits7e116f0e
and00ed72d7
. This removes the "error C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'" message that still remains even when using /wd4133 .
This commit is contained in:
parent
ce2c1f6321
commit
d829bcc629
1 changed files with 4 additions and 3 deletions
|
@ -71,9 +71,10 @@ add_library(windowscodecs MODULE
|
|||
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(windowscodecs PRIVATE
|
||||
/wd4133 # error C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
|
||||
/FItypeof.h)
|
||||
# error C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
|
||||
remove_target_compile_option(windowscodecs "/we4133")
|
||||
|
||||
target_compile_options(windowscodecs PRIVATE /FItypeof.h)
|
||||
endif()
|
||||
|
||||
set_module_type(windowscodecs win32dll)
|
||||
|
|
Loading…
Reference in a new issue