aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 19:45:32 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 19:45:32 +0000
commit59db87ade3bc8a5797560d60827cabebcb54485a (patch)
tree0bc76f15f128d243d20bfb3c9adde5ba07deb1d4 /sim
parentdc41661593ac273875b8a1ccb8d0f98a345f5f46 (diff)
downloadgdb-59db87ade3bc8a5797560d60827cabebcb54485a.zip
gdb-59db87ade3bc8a5797560d60827cabebcb54485a.tar.gz
gdb-59db87ade3bc8a5797560d60827cabebcb54485a.tar.bz2
sim: tweak static order on hw_glue_ports
GCC likes to warn when static comes after const: dv-glue.c:191: warning: 'static' is not at beginning of declaration
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/dv-glue.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 34f5ddd..15fbf8e 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2010-03-30 Mike Frysinger <vapier@gentoo.org>
+ * dv-glue.c (hw_glue_ports): Swap static and const.
+
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
* nrun.c (usage): Use void in definition.
* sim-options.c (dup_arg_p): Convert old-style function definition.
(sim_parse_args): Likewise.
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)