This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Warning Clean on dbg_thread_demux.c
- From: sebastien Couret <sebastien dot couret at elios-informatique dot fr>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 23 Mar 2004 16:09:51 +0100
- Subject: Warning Clean on dbg_thread_demux.c
- Organization: Elios Informatique
- Reply-to: sebastien dot couret at elios-informatique dot fr
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