From e9c8ea734c5fd6ae02af45fe71a72618ed93ccba Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Sat, 4 Aug 2012 20:10:18 +0200 Subject: [PATCH] cores: Move static to front of declaration This fixes the two -Wold-style-declaration warnings reported by gcc with -Wextra. --- simavr/cores/sim_tiny13.c | 2 +- simavr/cores/sim_tiny2313.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1