From: Doug Goldstein Date: Sat, 22 Feb 2014 03:28:19 +0000 (-0600) Subject: Fix avr_global_logger_get() decl to not warn X-Git-Tag: v1.2~21^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=e82f4851c4616164256fa974617a19abb5be9d3e;p=sx%2Fsimavr.git 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. --- 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 /*