public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: tweak static order on hw_glue_ports
@ 2010-03-29 21:30 Mike Frysinger
  2010-03-30 15:52 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-03-29 21:30 UTC (permalink / raw)
  To: gdb-patches

GCC likes to warn when static comes after const:
dv-glue.c:191: warning: 'static' is not at beginning of declaration

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
2010-03-29  Mike Frysinger  <vapier@gentoo.org>

	* dv-glue.c (hw_glue_ports): Swap static and const.

 sim/common/dv-glue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sim/common/dv-glue.c b/sim/common/dv-glue.c
index 40d294f..7720e3f 100644
--- a/sim/common/dv-glue.c
+++ b/sim/common/dv-glue.c
@@ -186,7 +186,7 @@ struct hw_glue {
 static hw_io_read_buffer_method hw_glue_io_read_buffer;
 static hw_io_write_buffer_method hw_glue_io_write_buffer;
 static hw_port_event_method hw_glue_port_event;
-const static struct hw_port_descriptor hw_glue_ports[];
+static const struct hw_port_descriptor hw_glue_ports[];
 
 static void
 hw_glue_finish (struct hw *me)
-- 
1.7.0.2

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

* Re: [PATCH] sim: tweak static order on hw_glue_ports
  2010-03-29 21:30 [PATCH] sim: tweak static order on hw_glue_ports Mike Frysinger
@ 2010-03-30 15:52 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2010-03-30 15:52 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: gdb-patches

>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> 2010-03-29  Mike Frysinger  <vapier@gentoo.org>
Mike> 	* dv-glue.c (hw_glue_ports): Swap static and const.

I think this one qualifies as obvious as well.

Tom

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

end of thread, other threads:[~2010-03-30 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-29 21:30 [PATCH] sim: tweak static order on hw_glue_ports Mike Frysinger
2010-03-30 15:52 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).