Two compiler warning fixes.

Andrew Lunn andrew@lunn.ch
Tue May 9 16:10:00 GMT 2006


Hi Folks

Attached are two compiler warning fixes. One in the hal common and
other in the serial tty layer.

         Andrew
-------------- next part --------------
Index: io/serial/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/ChangeLog,v
retrieving revision 1.67
diff -u -r1.67 ChangeLog
--- io/serial/current/ChangeLog	3 Sep 2005 13:01:43 -0000	1.67
+++ io/serial/current/ChangeLog	9 May 2006 16:07:45 -0000
@@ -1,3 +1,8 @@
+2006-05-09  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/common/tty.c (tty_init): Fix compiler warning with
+	diag_printf() arguments.
+
 2005-09-02  Sebastien Couret <sebastien.couret@elios-informatique.fr>
 
 	* src/common/termiostty.c and 
Index: io/serial/current/src/common/tty.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/tty.c,v
retrieving revision 1.12
diff -u -r1.12 tty.c
--- io/serial/current/src/common/tty.c	30 Jul 2005 11:52:40 -0000	1.12
+++ io/serial/current/src/common/tty.c	9 May 2006 16:07:46 -0000
@@ -132,7 +132,7 @@
 {
     struct tty_private_info *priv = (struct tty_private_info *)tab->priv;
 #ifdef CYGDBG_IO_INIT
-    diag_printf("Init tty channel: %x\n", tab);
+    diag_printf("Init tty channel: %p\n", tab);
 #endif
     priv->dev_info.tty_out_flags = CYG_TTY_OUT_FLAGS_DEFAULT;
     priv->dev_info.tty_in_flags = CYG_TTY_IN_FLAGS_DEFAULT;
-------------- next part --------------
Index: hal/common/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/common/current/ChangeLog,v
retrieving revision 1.111
diff -u -r1.111 ChangeLog
--- hal/common/current/ChangeLog	30 Jul 2005 11:09:58 -0000	1.111
+++ hal/common/current/ChangeLog	9 May 2006 15:28:24 -0000
@@ -1,3 +1,8 @@
+2006-05-09  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/hal_if.c (cyg_hal_diag_mangler_gdb_flush): Fix compiler
+	warning about signed/unsigned.
+
 2005-06-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/hal_tables.h (CYG_HAL_TABLE_{QUALIFIED_}ENTRY): added
Index: hal/common/current/src/hal_if.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/common/current/src/hal_if.c,v
retrieving revision 1.28
diff -u -r1.28 hal_if.c
--- hal/common/current/src/hal_if.c	27 Apr 2005 19:08:35 -0000	1.28
+++ hal/common/current/src/hal_if.c	9 May 2006 15:28:26 -0000
@@ -524,7 +524,8 @@
     while(1)
     {
 	static const char hex[] = "0123456789ABCDEF";
-	cyg_uint8 csum = 0, c1;
+	cyg_uint8 csum = 0;
+	char c1;
 	int i;
         
 	CYGACC_COMM_IF_PUTC(*__chan, '$');


More information about the Ecos-patches mailing list