cores: Move static to front of declaration
authorJakob Gruber <jakob.gruber@gmail.com>
Sat, 4 Aug 2012 18:10:18 +0000 (20:10 +0200)
committerJakob Gruber <jakob.gruber@gmail.com>
Sun, 5 Aug 2012 11:00:53 +0000 (13:00 +0200)
This fixes the two -Wold-style-declaration warnings reported by gcc with
-Wextra.

simavr/cores/sim_tiny13.c
simavr/cores/sim_tiny2313.c

index 71a30a3..796a4dc 100644 (file)
@@ -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;
index 0a8ed6c..54b9e7c 100644 (file)
@@ -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;