aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2018-08-06 16:23:28 +0200
committerKévin Redon <kredon@sysmocom.de>2018-08-06 16:23:33 +0200
commit8daba9cc9a6a7575c11cddd393c186615020f867 (patch)
tree9d0fb88686bf02e82756b32ccea4d7e2c82ca239
parentd5f583da60ab9b589b3ec2c73c28642c27d58130 (diff)
gcc: fix warning
moving the define after the header fixes the following warning: from ./atmel_softpack_libraries/libchip_sam3s/source/exceptions.c:46: libcommon/include/stdio.h:63:12: warning: redundant redeclaration of 'printf_sync' [-Wredundant-decls] signed int printf_sync(const char *pFormat, ...); ^~~~~~~~~~~ ./atmel_softpack_libraries/libchip_sam3s/source/exceptions.c:45:16: note: previous declaration of 'printf_sync' was here #define printf printf_sync ^~~~~~~~~~~ libcommon/include/stdio.h:51:12: note: in expansion of macro 'printf' signed int printf(const char *pFormat, ...); Change-Id: I21a8de325e8f8b91297dd157f2d6a0f64434bb28
-rw-r--r--firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c b/firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c
index 6d2a135..4799eae 100644
--- a/firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c
+++ b/firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c
@@ -42,8 +42,8 @@
* Headers
*----------------------------------------------------------------------------*/
-#define printf printf_sync
#include "chip.h"
+#define printf printf_sync
/*----------------------------------------------------------------------------
* Exported functions