[MPlayer-cvslog] r25826 - trunk/loader/module.c

diego subversion at mplayerhq.hu
Mon Jan 21 01:14:52 CET 2008


Author: diego
Date: Mon Jan 21 01:14:52 2008
New Revision: 25826

Log:
Surround variable declarations by preprocessor conditionals to avoid warnings:
module.c:143: warning: unused variable 'typeName'
module.c:948: warning: unused variable 'err'


Modified:
   trunk/loader/module.c

Modified: trunk/loader/module.c
==============================================================================
--- trunk/loader/module.c	(original)
+++ trunk/loader/module.c	Mon Jan 21 01:14:52 2008
@@ -140,8 +140,11 @@ static WIN_BOOL MODULE_InitDll( WINE_MOD
 {
     WIN_BOOL retv = TRUE;
 
+    #ifdef DEBUG
     static LPCSTR typeName[] = { "PROCESS_DETACH", "PROCESS_ATTACH",
                                  "THREAD_ATTACH", "THREAD_DETACH" };
+    #endif
+
     assert( wm );
 
 
@@ -945,7 +948,9 @@ static int report_func(void *stack_base,
 static int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags)
 {
   //int i;
+#ifdef DEBUG_QTX_API
   short err;
+#endif
 
   // restore ret addr:
   --ret_i;



More information about the MPlayer-cvslog mailing list