Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* sim/erc32 warnings
@ 2008-11-07 17:25 Joel Sherrill
  2008-11-08  1:27 ` Hans-Peter Nilsson
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 2008-11-07 17:25 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

Hi,

I am working through the RTEMS gdb patch
and submitting it in pieces. 

erc32.c needed to include string.h and
get rid of symbols after endif.

exec.c had a ";" where some gcc versions
wanted a "break;"

2008-11-07  Joel Sherrill <joel.sherrill@oarcorp.com>

    * erc32.c, exec.c: Fix warnings.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



[-- Attachment #2: sis-warnings.diff --]
[-- Type: text/x-patch, Size: 810 bytes --]

? .exec.c.swp
Index: erc32.c
===================================================================
RCS file: /cvs/src/src/sim/erc32/erc32.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 erc32.c
--- erc32.c	16 Apr 1999 01:35:00 -0000	1.1.1.1
+++ erc32.c	7 Nov 2008 17:21:50 -0000
@@ -24,6 +24,7 @@
 
 #include <sys/types.h>
 #include <stdio.h>
+#include <string.h>
 #include <termios.h>
 #include <sys/fcntl.h>
 #include <sys/file.h>
@@ -1659,7 +1660,7 @@
 	errmec = 0;
 	return(1);
     }
-#endif;
+#endif
 
     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
 	fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz);
@@ -1736,7 +1737,7 @@
 	errmec = 0;
 	return(1);
     }
-#endif;
+#endif
 
     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
 	if (mem_accprot) {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-11 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-07 17:25 sim/erc32 warnings Joel Sherrill
2008-11-08  1:27 ` Hans-Peter Nilsson
2008-11-11 23:12   ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox