[PATCH 5/6] Silence compile time warnings for dynamically loaded libxslt

Nikolay Sivov nsivov at codeweavers.com
Sun Mar 13 06:10:24 CDT 2011


---
 dlls/msxml3/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index 741858b..6cbdd99 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -193,7 +193,9 @@ static void init_libxslt(void)
     if (!libxslt_handle)
         return;
 
-#define LOAD_FUNCPTR(f, needed) if ((p##f = wine_dlsym(libxslt_handle, #f, NULL, 0)) == NULL && needed) { WARN("Can't find symbol %s\n", #f); goto sym_not_found; }
+#define LOAD_FUNCPTR(f, needed) \
+    if ((p##f = wine_dlsym(libxslt_handle, #f, NULL, 0)) == NULL) \
+        if (needed) { WARN("Can't find symbol %s\n", #f); goto sym_not_found; }
     LOAD_FUNCPTR(xsltInit, 0);
     LOAD_FUNCPTR(xsltApplyStylesheet, 1);
     LOAD_FUNCPTR(xsltCleanupGlobals, 1);
-- 
1.5.6.5



--------------070305080506060201030601--



More information about the wine-patches mailing list