From: Jakob Gruber Date: Sat, 4 Aug 2012 18:10:18 +0000 (+0200) Subject: cores: Move static to front of declaration X-Git-Tag: v1.0~33 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=e9c8ea734c5fd6ae02af45fe71a72618ed93ccba;p=sx%2Fsimavr.git cores: Move static to front of declaration This fixes the two -Wold-style-declaration warnings reported by gcc with -Wextra. --- diff --git a/simavr/cores/sim_tiny13.c b/simavr/cores/sim_tiny13.c index 71a30a3..796a4dc 100644 --- a/simavr/cores/sim_tiny13.c +++ b/simavr/cores/sim_tiny13.c @@ -37,7 +37,7 @@ static void init(struct avr_t * avr); static void reset(struct avr_t * avr); -const static struct mcu_t { +static const struct mcu_t { avr_t core; avr_eeprom_t eeprom; avr_watchdog_t watchdog; diff --git a/simavr/cores/sim_tiny2313.c b/simavr/cores/sim_tiny2313.c index 0a8ed6c..54b9e7c 100644 --- a/simavr/cores/sim_tiny2313.c +++ b/simavr/cores/sim_tiny2313.c @@ -38,7 +38,7 @@ static void reset(struct avr_t * avr); /* * This is a template for all of the tinyx5 devices, hopefully */ -const static struct mcu_t { +static const struct mcu_t { avr_t core; avr_eeprom_t eeprom; avr_watchdog_t watchdog;