mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
Enable warnings on nRF5x examples
Now all warnings are disabled on SDK files, and enabled on our application's files. Fixed a couple of things in nRF52 which were unnoticed because all warnings were disabled there from the beginning. PUBLISHED_FROM=a33ab22d0ce85efea364b80478986b88f4b0a3a2
This commit is contained in:
1 parent
7f2bdc217a
commit
e69a7a1b25
6 files changed
+86
-20
No files matched your search
+18
-1
@@ -975,10 +975,13 @@ int gettimeofday(struct timeval *tp, void *tzp);
|
||||
#define to64(x) strtoll(x, NULL, 10)
|
||||
|
||||
#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
|
||||
#define LWIP_PROVIDE_ERRNO 1
|
||||
#define MG_LWIP 1
|
||||
#define MG_ENABLE_IPV6 1
|
||||
|
||||
#if !defined(ENOSPC)
|
||||
# define ENOSPC 28 /* No space left on device */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* For ARM C Compiler, make lwip to export `struct timeval`; for other
|
||||
* compilers, suppress it.
|
||||
@@ -1442,6 +1445,20 @@ char* inet_ntoa(struct in_addr in);
|
||||
|
||||
#if MG_LWIP
|
||||
|
||||
|
||||
/*
|
||||
* When compiling for nRF5x chips with arm-none-eabi-gcc, it has BYTE_ORDER
|
||||
* already defined, so in order to avoid warnings in lwip, we have to undefine
|
||||
* it.
|
||||
*
|
||||
* TODO: Check if in the future versions of nRF5 SDK that changes.
|
||||
* Current version of nRF51 SDK: 0.8.0
|
||||
* nRF5 SDK: 0.9.0
|
||||
*/
|
||||
#if CS_PLATFORM == CS_P_NRF51 || CS_PLATFORM == CS_P_NRF52
|
||||
# undef BYTE_ORDER
|
||||
#endif
|
||||
|
||||
#include <lwip/opt.h>
|
||||
#include <lwip/err.h>
|
||||
#include <lwip/ip_addr.h>
|
||||
|
||||
Reference in new issue
Block a user