Commit e82f4851c4616164256fa974617a19abb5be9d3e
authorDoug Goldstein <cardoe@cardoe.com>
Sat, 22 Feb 2014 03:28:19 +0000 (21:28 -0600)
committerDoug Goldstein <cardoe@cardoe.com>
Tue, 4 Mar 2014 02:32:00 +0000 (20:32 -0600)
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.

2 files changed:
simavr/sim/sim_avr.c
simavr/sim/sim_avr.h

index b47bd7229e67024daceef524bce7de6e5aaa440b..0366b58f0866ab5d081783491fe1e5b283d905e1 100644 (file)
@@ -60,7 +60,7 @@ avr_global_logger_set(
 }
 
 avr_logger_p
-avr_global_logger_get()
+avr_global_logger_get(void)
 {
        return _avr_global_logger;
 }
index 1e393a2ffffc5fb110d2aa186a77fa0e4c1152c2..9690cf7f14a8a6732c06222e5d8851953680c3ae 100644 (file)
@@ -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
 
 /*