From: Mike Frysinger Date: Tue, 30 Mar 2010 19:45:32 +0000 (+0000) Subject: sim: tweak static order on hw_glue_ports X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59db87ade3bc8a5797560d60827cabebcb54485a;p=binutils-gdb.git 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 --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 34f5dddae16..15fbf8ef42f 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2010-03-30 Mike Frysinger + + * dv-glue.c (hw_glue_ports): Swap static and const. + 2010-03-30 Mike Frysinger * nrun.c (usage): Use void in definition. diff --git a/sim/common/dv-glue.c b/sim/common/dv-glue.c index 40d294f2fcd..7720e3f9c63 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)