This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning Clean on dbg_thread_demux.c


Hi All, 
Again just a minor issue (warning clean) 

If CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT is disabled, the following warning 
is issued while compiling 
{ECOS_REPOSITORY}/kernel/current/src/debug/dbg_thread_demux.c

"dbg_thread_syscall_rmt defined but not used"

Here is a patch proposal :

diff -a -w -u -r 1.10 dbg-thread-demux.c
--- 1.10/dbg-thread-demux.c     Tue Mar 23 15:56:25 2004
+++ dbg-thread-demux.c  Thu Mar 11 17:54:10 2004
@@ -89,6 +89,7 @@

 // -------------------------------------------------------------------------

+#ifdef CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT
 static int dbg_thread_syscall_rmt(
                        enum dbg_syscall_ids id,
                        union dbg_thread_syscall_parms * p
@@ -140,7 +141,7 @@
     CYGARC_HAL_RESTORE_GP();
     return ret;
 }
-
+#endif /* CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT */

 // Note: This constant is the same as the one defined in hal_if.h:
 // #define CYGNUM_CALL_IF_DBG_SYSCALL                15


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]