Warning Clean on dbg_thread_demux.c
Andrew Lunn
andrew@lunn.ch
Sat Mar 27 17:39:00 GMT 2004
On Tue, Mar 23, 2004 at 04:09:51PM +0100, sebastien Couret wrote:
> 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"
Thanks. Attached is the patch i have committed.
Andrew
-------------- next part --------------
Index: kernel/current//ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v
retrieving revision 1.116
diff -u -r1.116 ChangeLog
--- kernel/current//ChangeLog 15 Mar 2004 15:20:53 -0000 1.116
+++ kernel/current//ChangeLog 27 Mar 2004 17:39:06 -0000
@@ -1,3 +1,8 @@
+2004-03-27 Sebastien Couret <sebastien.couret@elios-informatique.fr>
+
+ * src/debug/dbg-thread-demux.c (dbg_thread_syscall_rmt): Only
+ needed if CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT is enabled.
+
2004-03-12 Jonathan Larmour <jifl@eCosCentric.com>
* include/kapi.h: Add throw specifications throughout.
Index: kernel/current//src/debug/dbg-thread-demux.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/src/debug/dbg-thread-demux.c,v
retrieving revision 1.10
diff -u -r1.10 dbg-thread-demux.c
--- kernel/current//src/debug/dbg-thread-demux.c 23 May 2002 23:06:53 -0000 1.10
+++ kernel/current//src/debug/dbg-thread-demux.c 27 Mar 2004 17:39:07 -0000
@@ -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
More information about the Ecos-patches
mailing list