changeset 25798:c8c9b4e89fb7

Surround variable declarations by preprocessor conditionals to avoid warnings: module.c:143: warning: unused variable 'typeName' module.c:948: warning: unused variable 'err'
author diego
date Mon, 21 Jan 2008 00:14:52 +0000
parents 89f34e147606
children 4e4927b0c91b
files loader/module.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/module.c	Mon Jan 21 00:10:51 2008 +0000
+++ b/loader/module.c	Mon Jan 21 00:14:52 2008 +0000
@@ -140,8 +140,11 @@
 {
     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_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;