[LIBXML2] Actually, the VS build has the /wd4189 flag before /we4189 rendering it useless. Use another approach to silencing it.

svn path=/trunk/; revision=69027
This commit is contained in:
Amine Khaldi 2015-09-05 14:29:27 +00:00
parent 739486b5a0
commit a0673404ef
3 changed files with 1 additions and 17 deletions

View file

@ -68,7 +68,7 @@ add_pch(libxml2 libxml.h SOURCE)
add_dependencies(libxml2 psdk)
if(MSVC)
add_target_compile_flags(libxml2 "/wd4189")
replace_compile_flags("/we4189" " ")
else()
add_target_compile_flags(libxml2 "-w")
endif()

View file

@ -1,14 +0,0 @@
Index: uri.c
===================================================================
--- uri.c (revision 69017)
+++ uri.c (working copy)
@@ -2389,7 +2389,9 @@
*/
#if defined(_WIN32) && !defined(__CYGWIN__)
int len = 0;
+#ifndef __REACTOS__
int i = 0;
+#endif
xmlChar *p = NULL;
#endif
xmlURIPtr uri;

View file

@ -2389,9 +2389,7 @@ xmlCanonicPath(const xmlChar *path)
*/
#if defined(_WIN32) && !defined(__CYGWIN__)
int len = 0;
#ifndef __REACTOS__
int i = 0;
#endif
xmlChar *p = NULL;
#endif
xmlURIPtr uri;