Skip to content

Commit 41bc57d

Browse files
committed
[REACTOS] Silence warnings in 3r-party code
1 parent 5d8e834 commit 41bc57d

File tree

33 files changed

+145
-31
lines changed

33 files changed

+145
-31
lines changed

base/applications/mstsc/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ set_module_type(mstsc win32gui UNICODE)
3838
add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 crypt32 secur32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32)
3939
add_pch(mstsc precomp.h SOURCE)
4040
add_cd_file(TARGET mstsc DESTINATION reactos/system32 FOR all)
41+
42+
if(MSVC)
43+
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'uint16', possible loss of data
44+
target_compile_options(mstsc PRIVATE /wd4267)
45+
endif()

base/applications/network/telnet/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ add_executable(telnet ${SOURCE} telnet.rc)
2525
target_link_libraries(telnet cppstl)
2626
set_target_cpp_properties(telnet WITH_EXCEPTIONS)
2727

28+
if (MSVC)
29+
# C4838: conversion from 'int' to 'SHORT' requires a narrowing conversion
30+
# C4996: 'strnicmp': Deprecated POSIX name, Try _strnicmp instead!
31+
target_compile_options(telnet PRIVATE /wd4838 /wd4996)
32+
endif()
33+
2834
if (NOT MSVC)
2935
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
3036
endif()

base/services/nfsd/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ add_executable(nfsd ${SOURCE} nfsd.rc)
5050

5151
if(MSVC AND (NOT USE_CLANG_CL))
5252
# Disable warning C4477 (printf format warnings)
53-
remove_target_compile_option(nfsd "/we4477")
53+
target_compile_options(nfsd PRIVATE /wd4477)
5454
else()
5555
# FIXME: Tons of warnings.
5656
target_compile_options(nfsd PRIVATE "-w")

base/services/tftpd/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ set_module_type(tftpd win32cui)
44
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
55
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
66

7+
if (MSVC)
8+
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'unsigned short', possible loss of data
9+
target_compile_options(tftpd PRIVATE /wd4267)
10+
endif()
11+
712
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
813
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
914
endif()

dll/3rdparty/libtirpc/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,10 @@ add_library(libtirpc MODULE
9494
${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
9595

9696
if(MSVC)
97-
# error C4133: '=': incompatible types - from 'char *' to 'int32_t *'
98-
remove_target_compile_option(libtirpc "/we4133")
99-
# Disable warning C4313 (format string conflicts)
100-
remove_target_compile_option(libtirpc "/we4313")
101-
# Disable warning C4477 (printf format warnings)
102-
remove_target_compile_option(libtirpc "/we4477")
97+
# Disable warning C4273: 'strtok_s': inconsistent dll linkage
98+
# Disable warning C4313: 'fprintf': '%x' in format string conflicts with argument 2 of type 'HANDLE'
99+
target_compile_options(libtirpc PRIVATE /wd4273 /wd4313)
103100
if (NOT USE_CLANG_CL)
104-
remove_target_compile_option(libtirpc "/we4101")
105101
target_compile_options(libtirpc PRIVATE /wd4101 /wd4133 /wd4473 /wd4477)
106102
endif()
107103
else()

dll/directx/wine/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
if (MSVC)
3+
# Disable warning C4090: 'function': different 'const' qualifiers
4+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
5+
add_compile_options(/wd4090 /wd4146)
6+
endif()
7+
28
add_subdirectory(amstream)
39
add_subdirectory(d3d8)
410
add_subdirectory(d3d9)

dll/win32/avifil32/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ add_library(avifil32 MODULE
3030
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
3131
${CMAKE_CURRENT_BINARY_DIR}/avifil32.def)
3232

33+
if(MSVC)
34+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
35+
target_compile_options(avifil32 PRIVATE /wd4146)
36+
endif()
37+
3338
set_module_type(avifil32 win32dll)
3439
target_link_libraries(avifil32 wine ${PSEH_LIB})
3540
add_importlibs(avifil32 msacm32 msvfw32 winmm ole32 user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)

dll/win32/comctl32/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ add_library(comctl32 MODULE
6565
${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
6666

6767
if(MSVC)
68+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
69+
# Disable warning C4267: '=': conversion from 'size_t' to 'WORD', possible loss of data
6870
# Disable warning C4477 (printf format warnings)
69-
remove_target_compile_option(comctl32 "/we4477")
71+
target_compile_options(comctl32 PRIVATE /wd4146 /wd4267 /wd4477)
7072
endif()
7173

7274
set_module_type(comctl32 win32dll UNICODE)

dll/win32/crypt32/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ add_library(crypt32 MODULE
4747
${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
4848

4949
if(MSVC)
50-
# error C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
51-
remove_target_compile_option(crypt32 "/we4312")
50+
# Disable warning C4090: 'function': different 'const' qualifiers
51+
# Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
52+
target_compile_options(crypt32 PRIVATE /wd4090 /wd4312)
5253
endif()
5354

5455
set_module_type(crypt32 win32dll)

dll/win32/dbghelp/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ else()
8181
add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)
8282

8383
if(MSVC)
84+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
8485
# Disable warning C4477 (printf format warnings)
85-
remove_target_compile_option(dbghelp "/we4477")
86+
target_compile_options(dbghelp PRIVATE /wd4146 /wd4477)
8687
endif()
8788
endif()

dll/win32/gdiplus/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ add_library(gdiplus MODULE
3333
gdiplus.rc
3434
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
3535

36+
if(MSVC)
37+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
38+
# Disable warning C4305: '=': truncation from 'double' to 'REAL'
39+
target_compile_options(gdiplus PRIVATE /wd4146 /wd4305)
40+
endif()
41+
3642
set_module_type(gdiplus win32dll)
3743
target_link_libraries(gdiplus wine)
3844
add_delay_importlibs(gdiplus windowscodecs)

dll/win32/jscript/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ add_library(jscript MODULE
5555
rsrc.rc
5656
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
5757

58+
if(MSVC)
59+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
60+
# Disable warning C4267: '=': conversion from 'size_t' to 'WCHAR', possible loss of data
61+
target_compile_options(jscript PRIVATE /wd4146 /wd4267)
62+
endif()
63+
5864
add_idl_headers(jscript_idlheader jscript_classes.idl)
5965
add_typelib(jsglobal.idl)
6066
add_dependencies(jscript jscript_idlheader stdole2)

dll/win32/kernel32/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ list(APPEND SOURCE
9393
winnls/string/sortkey.c
9494
k32.h)
9595

96+
if(MSVC)
97+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
98+
set_source_files_properties(wine/res.c PROPERTIES COMPILE_FLAGS /wd4146)
99+
endif()
100+
96101
if(ARCH STREQUAL "i386")
97102
list(APPEND ASM_SOURCE
98103
client/i386/fiber.S

dll/win32/mciseq/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ target_link_libraries(mciseq wine)
1313
add_importlibs(mciseq winmm user32 msvcrt kernel32 ntdll)
1414
add_cd_file(TARGET mciseq DESTINATION reactos/system32 FOR all)
1515

16-
if(NOT MSVC)
16+
if(MSVC)
17+
# Disable warning C4305: '=': truncation from 'UINT' to 'WORD'
18+
target_compile_options(mciseq PRIVATE /wd4305)
19+
else()
1720
target_compile_options(mciseq PRIVATE "-Wno-overflow")
1821
endif()

dll/win32/mciwave/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ target_link_libraries(mciwave wine)
1616
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
1717
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
1818

19-
if(NOT MSVC)
19+
if(MSVC)
20+
# Disable warning C4305: '=': truncation from 'UINT' to 'WORD'
21+
target_compile_options(mciwave PRIVATE /wd4305)
22+
else()
2023
target_compile_options(mciwave PRIVATE "-Wno-overflow")
2124
endif()

dll/win32/msi/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ add_library(msi MODULE
6464
${CMAKE_CURRENT_BINARY_DIR}/msi.def)
6565

6666
if(MSVC)
67-
# error C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
68-
remove_target_compile_option(msi "/we4133")
69-
70-
# error C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
71-
remove_target_compile_option(msi "/we4312")
67+
# Disable warning C4090: 'function': different 'const' qualifiers
68+
# Disable warning C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
69+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
70+
# Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
71+
target_compile_options(msi PRIVATE /wd4090 /wd4133 /wd4146 /wd4312)
7272
endif()
7373

7474
add_idl_headers(msi_idlheader msiserver.idl)

dll/win32/msxml3/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ target_link_libraries(msxml3 libxml2 iconv-static uuid wine zlib)
7676

7777
if(MSVC)
7878
target_compile_options(msxml3 PRIVATE /FIwine/typeof.h /FImsvc.h)
79+
80+
# Disable warning C4090: 'function': different 'const' qualifiers
81+
target_compile_options(msxml3 PRIVATE /wd4090)
7982
endif()
8083

8184
add_importlibs(msxml3 urlmon ws2_32 shlwapi oleaut32 ole32 user32 msvcrt kernel32 ntdll)

dll/win32/netapi32/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,8 @@ add_delay_importlibs(netapi32 samlib secur32)
5858
add_importlibs(netapi32 iphlpapi ws2_32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
5959
add_pch(netapi32 netapi32.h "${PCH_SKIP_SOURCE}")
6060
add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)
61+
62+
if(MSVC)
63+
# Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
64+
target_compile_options(netapi32 PRIVATE /wd4267)
65+
endif()

dll/win32/ole32/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ add_library(ole32 MODULE
8181
${CMAKE_CURRENT_BINARY_DIR}/irot_c.c
8282
${CMAKE_CURRENT_BINARY_DIR}/ole32.def)
8383

84+
if(MSVC)
85+
# Disable warning C4090: '=': different 'const' qualifiers
86+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
87+
target_compile_options(ole32 PRIVATE /wd4090 /wd4146)
88+
endif()
89+
8490
set_module_type(ole32 win32dll)
8591
target_link_libraries(ole32 wine uuid ${PSEH_LIB})
8692
add_delay_importlibs(ole32 oleaut32)

dll/win32/oleaut32/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ add_library(oleaut32 MODULE
4949
oleaut32.rc
5050
${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
5151

52+
if(MSVC)
53+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
54+
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'BYTE', possible loss of data
55+
target_compile_options(oleaut32 PRIVATE /wd4146 /wd4267)
56+
endif()
57+
5258
add_idl_headers(oleaut32_idlheader oleaut32_oaidl.idl)
5359
add_dependencies(oleaut32 oleaut32_idlheader)
5460
set_module_type(oleaut32 win32dll)

dll/win32/rpcrt4/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ add_library(rpcrt4 MODULE
5858
rpcrt4.rc
5959
${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
6060

61+
if(MSVC)
62+
# Disable warning C4267: '=': conversion from 'size_t' to 'short', possible loss of data
63+
target_compile_options(rpcrt4 PRIVATE /wd4267)
64+
endif()
65+
6166
set_module_type(rpcrt4 win32dll)
6267
target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
6368
add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32 oleaut32)

dll/win32/vbscript/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ add_library(vbscript MODULE
3939
vbscript.rc
4040
${CMAKE_CURRENT_BINARY_DIR}/vbscript.def)
4141

42+
if(MSVC)
43+
# Disable warning C4267: '=': conversion from 'size_t' to 'WCHAR', possible loss of data
44+
target_compile_options(vbscript PRIVATE /wd4267)
45+
endif()
46+
4247
set_module_type(vbscript win32dll)
4348
target_link_libraries(vbscript uuid wine)
4449
add_importlibs(vbscript oleaut32 ole32 user32 msvcrt kernel32 ntdll)

dll/win32/windowscodecs/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ add_library(windowscodecs MODULE
7171
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
7272

7373
if(MSVC)
74-
# error C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
75-
remove_target_compile_option(windowscodecs "/we4133")
74+
# Disable warning C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
75+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
76+
target_compile_options(windowscodecs PRIVATE /wd4133 /wd4146)
7677

7778
target_compile_options(windowscodecs PRIVATE /FItypeof.h)
7879
endif()

dll/win32/wininet/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ add_library(wininet MODULE
3939
rsrc.rc
4040
${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
4141

42+
if(MSVC)
43+
# Disable warning C4090: 'function': different 'const' qualifiers
44+
target_compile_options(wininet PRIVATE /wd4090)
45+
endif()
46+
4247
set_module_type(wininet win32dll)
4348
target_link_libraries(wininet wine ${PSEH_LIB} oldnames)
4449

dll/win32/winmm/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ add_library(winmm MODULE
2323

2424

2525
if(MSVC)
26-
# error C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
27-
remove_target_compile_option(winmm "/we4312")
26+
# Disable warning C4090: 'function': different 'const' qualifiers
27+
# Disable warning C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
28+
target_compile_options(winmm PRIVATE /wd4090 /wd4312)
2829
endif()
2930

3031
set_module_type(winmm win32dll)

dll/win32/wintrust/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ add_library(wintrust MODULE
1717
version.rc
1818
${CMAKE_CURRENT_BINARY_DIR}/wintrust.def)
1919

20+
if(MSVC)
21+
# Disable warning C4090: 'function': different 'const' qualifiers
22+
target_compile_options(wintrust PRIVATE /wd4090)
23+
endif()
24+
2025
set_module_type(wintrust win32dll)
2126
target_link_libraries(wintrust wine ${PSEH_LIB})
2227
# FIXME: imagehlp should be delay-imported. See CORE-6504

dll/win32/xmllite/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ add_library(xmllite MODULE
1515
guid.c
1616
${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
1717

18+
if(MSVC)
19+
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
20+
target_compile_options(xmllite PRIVATE /wd4146)
21+
endif()
22+
1823
set_module_type(xmllite win32dll)
1924
target_link_libraries(xmllite uuid wine)
2025
add_importlibs(xmllite msvcrt kernel32 ntdll)

drivers/bluetooth/fbtusb/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
1616
target_compile_options(fbtusb PRIVATE -Wno-unused-but-set-variable)
1717
endif()
1818

19+
if(MSVC)
20+
# Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
21+
target_compile_options(fbtusb PRIVATE /wd4267)
22+
endif()
23+
1924
set_module_type(fbtusb kernelmodedriver)
2025
add_importlibs(fbtusb ntoskrnl hal usbd)
2126
add_pch(fbtusb precomp.h SOURCE)

drivers/filesystems/btrfs/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ add_asm_files(btrfs_asm ${ASM_SOURCE})
6565

6666
add_library(btrfs MODULE ${SOURCE} ${btrfs_asm} btrfs.rc)
6767

68+
if(MSVC)
69+
# Disable warning C4267: 'function': conversion from 'size_t' to 'uint16_t', possible loss of data
70+
target_compile_options(btrfs PRIVATE /wd4267)
71+
endif()
72+
6873
add_definitions(-D__KERNEL__)
6974
set_module_type(btrfs kernelmodedriver)
7075
target_link_libraries(btrfs rtlver zlib_solo chkstk wdmguid ${PSEH_LIB})

drivers/filesystems/ext2/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ if(USE_CLANG_CL)
9393
endif()
9494

9595
if(MSVC)
96-
# Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
9796
if (NOT CLANG)
98-
remove_target_compile_option(ext2fs "/we4101")
99-
remove_target_compile_option(ext2fs "/we4189")
100-
target_compile_options(ext2fs PRIVATE /wd4189 /wd4142 /wd4101)
97+
# Disable warning C4101: 'i': unreferenced local variable
98+
# Disable warning C4189: 'sbi': local variable is initialized but not referenced
99+
# Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
100+
target_compile_options(ext2fs PRIVATE /wd4101 /wd4189 /wd4267)
101101
endif()
102102
else()
103103
target_compile_options(ext2fs PRIVATE

drivers/storage/ide/uniata/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ if(USE_CLANG_CL OR (NOT MSVC))
2828
endif()
2929
endif()
3030

31+
if(MSVC)
32+
# Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
33+
# Disable warning C4838: conversion from 'int' to 'ULONG' requires a narrowing conversion
34+
target_compile_options(uniata PRIVATE /wd4267 /wd4838)
35+
endif()
36+
3137
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
3238
target_compile_options(uniata PRIVATE -Wno-unused-but-set-variable)
3339
endif()

modules/rostests/winetests/riched20/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ list(APPEND SOURCE
77
testlist.c
88
txtsrv.c)
99

10-
if(MSVC)
11-
set_property(SOURCE editor.c APPEND_STRING PROPERTY COMPILE_FLAGS " /w14189")
12-
endif()
13-
1410
add_executable(riched20_winetest ${SOURCE})
1511
set_module_type(riched20_winetest win32cui)
1612
add_importlibs(riched20_winetest ole32 oleaut32 user32 gdi32 msvcrt kernel32)

sdk/lib/fslib/ext2lib/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ list(APPEND SOURCE
1414
add_library(ext2lib ${SOURCE})
1515
add_pch(ext2lib Mke2fs.h SOURCE)
1616
add_dependencies(ext2lib psdk)
17+
18+
if(MSVC)
19+
# Disable warning C4267: '=': conversion from 'size_t' to '__u8', possible loss of data
20+
target_compile_options(ext2lib PRIVATE /wd4267)
21+
endif()

0 commit comments

Comments
 (0)