https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6ddf034ab4e40a84ed9fad...
commit 6ddf034ab4e40a84ed9fad88b4f36a7a5f47d278 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Sun Jan 6 17:31:43 2019 +0100 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Mon Mar 4 21:58:42 2019 +0100
[MKISOFS] Silence MSVC warnings --- sdk/tools/mkisofs/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sdk/tools/mkisofs/CMakeLists.txt b/sdk/tools/mkisofs/CMakeLists.txt index 37d85bcbe0..a045c03dd5 100644 --- a/sdk/tools/mkisofs/CMakeLists.txt +++ b/sdk/tools/mkisofs/CMakeLists.txt @@ -1,7 +1,7 @@
add_definitions( -DDUPLICATES_ONCE - -DINS_BASE="\".\"" + -DINS_BASE="\".\"" -DSCHILY_BUILD -DSORTING)
@@ -84,6 +84,11 @@ if(MSVC) # mkisofs uses K&R-style function definitions to support very old compilers. # MSVC complains about the resulting foo() vs. foo(void) mismatches. 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() # libschily implements an own printf function with support for the %r formatter. # Silence compilers checking for invalid formatting sequences.