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
This commit is contained in:
Kévin Redon
2018-08-06 16:23:28 +02:00
parent d5f583da60
commit 8daba9cc9a

View File

@@ -42,8 +42,8 @@
* Headers
*----------------------------------------------------------------------------*/
#define printf printf_sync
#include "chip.h"
#define printf printf_sync
/*----------------------------------------------------------------------------
* Exported functions