1
0
Fork 0
mirror of https://github.com/reactos/reactos.git synced 2025-05-14 23:03:53 +00:00

[MKISOFS] Silence MSVC warnings

This commit is contained in:
Timo Kreuzer 2019-01-06 17:31:43 +01:00
parent 73c776c744
commit 6ddf034ab4

View file

@ -1,7 +1,7 @@
add_definitions( add_definitions(
-DDUPLICATES_ONCE -DDUPLICATES_ONCE
-DINS_BASE="\\".\\"" -DINS_BASE="\\\".\\\""
-DSCHILY_BUILD -DSCHILY_BUILD
-DSORTING) -DSORTING)
@ -84,6 +84,11 @@ if(MSVC)
# mkisofs uses K&R-style function definitions to support very old compilers. # mkisofs uses K&R-style function definitions to support very old compilers.
# MSVC complains about the resulting foo() vs. foo(void) mismatches. # MSVC complains about the resulting foo() vs. foo(void) mismatches.
add_target_compile_flags(mkisofs "/wd4113") add_target_compile_flags(mkisofs "/wd4113")
if (ARCH STREQUAL "amd64")
# Disable warning "conversion from 'size_t' to 'int', possible loss of data"
add_target_compile_flags(mkisofs "/wd4267")
endif()
else() else()
# libschily implements an own printf function with support for the %r formatter. # libschily implements an own printf function with support for the %r formatter.
# Silence compilers checking for invalid formatting sequences. # Silence compilers checking for invalid formatting sequences.