From e82f4851c4616164256fa974617a19abb5be9d3e Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Fri, 21 Feb 2014 21:28:19 -0600 Subject: [PATCH] Fix avr_global_logger_get() decl to not warn When using sim_avr.h with a project that uses -Wstrict-prototypes, you will get a warning that the prototype for avr_global_logger_get() is not valid. Functions that take no args must explicitly use void to not warn. --- simavr/sim/sim_avr.c | 2 +- simavr/sim/sim_avr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simavr/sim/sim_avr.c b/simavr/sim/sim_avr.c index b47bd72..0366b58 100644 --- a/simavr/sim/sim_avr.c +++ b/simavr/sim/sim_avr.c @@ -60,7 +60,7 @@ avr_global_logger_set( } avr_logger_p -avr_global_logger_get() +avr_global_logger_get(void) { return _avr_global_logger; } diff --git a/simavr/sim/sim_avr.h b/simavr/sim/sim_avr.h index 1e393a2..9690cf7 100644 --- a/simavr/sim/sim_avr.h +++ b/simavr/sim/sim_avr.h @@ -398,7 +398,7 @@ avr_global_logger_set( avr_logger_p logger); /* Gets the current global logger function */ avr_logger_p -avr_global_logger_get(); +avr_global_logger_get(void); #endif /* -- 2.39.5