This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
gdbserver, remove redundant `;'
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 12 Apr 2010 14:53:13 +0100
- Subject: gdbserver, remove redundant `;'
The other day, I was toying with the idea of building gdbserver
with -Werror, and ,just for kicks, ended up building
gdbserver with `make CC="gcc -pedantic"' (and -ansi). It spews a
bunch of warnings; amongst these, I managed to spot this
double `;;'.
I thought the exercise should at least produce
one patch, so here it is. :-)
Applied.
--
Pedro Alves
2010-04-12 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/
* server.h (buffer_xml_printf): Remove redundant `;'.
---
gdb/gdbserver/server.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: src/gdb/gdbserver/server.h
===================================================================
--- src.orig/gdb/gdbserver/server.h 2010-04-11 17:31:41.000000000 +0100
+++ src/gdb/gdbserver/server.h 2010-04-12 14:40:59.000000000 +0100
@@ -444,7 +444,7 @@ char* buffer_finish (struct buffer *buff
/* Simple printf to BUFFER function. Current implemented formatters:
%s - grow an xml escaped text in OBSTACK. */
void buffer_xml_printf (struct buffer *buffer, const char *format, ...)
- ATTR_FORMAT (printf, 2, 3);;
+ ATTR_FORMAT (printf, 2, 3);
#define buffer_grow_str(BUFFER,STRING) \
buffer_grow (BUFFER, STRING, strlen (STRING))