Kévin Redon has uploaded this change for review. ( 
https://gerrit.osmocom.org/10359


Change subject: gcc: fix warning
......................................................................

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
---
M firmware/atmel_softpack_libraries/libchip_sam3s/source/exceptions.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/59/10359/1

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

--
To view, visit https://gerrit.osmocom.org/10359
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I21a8de325e8f8b91297dd157f2d6a0f64434bb28
Gerrit-Change-Number: 10359
Gerrit-PatchSet: 1
Gerrit-Owner: Kévin Redon <kre...@sysmocom.de>

Reply via email to