diff --git a/crypto/mbedtls/Makefile b/crypto/mbedtls/Makefile index 33038411132..241e076ead7 100644 --- a/crypto/mbedtls/Makefile +++ b/crypto/mbedtls/Makefile @@ -48,6 +48,7 @@ MBEDTLS_FRAMEWORK_UNPACKNAME = mbedtls-framework CFLAGS += ${DEFINE_PREFIX}unix mbedtls/library/bignum.c_CFLAGS += -fno-lto +mbedtls/library/ctr_drbg.c_CFLAGS += -Wno-array-bounds # Build break on Assemble compiler if -fno-omit-frame-pointer and -O3 enabled at same time # {standard input}: Assembler messages: diff --git a/interpreters/quickjs/Makefile b/interpreters/quickjs/Makefile index 7b84a08bb4e..457cdee359f 100644 --- a/interpreters/quickjs/Makefile +++ b/interpreters/quickjs/Makefile @@ -35,6 +35,8 @@ VERSION=\"$(QUICKJS_VERSION)\" CFLAGS += -Dmp_add=qjs_mp_add -Dmp_sub=qjs_mp_sub -Dmp_mul=qjs_mp_mul CFLAGS += -DCONFIG_VERSION=$(VERSION) -Wno-shadow CFLAGS += -Wno-array-bounds -I$(QUICKJS_UNPACK) +CFLAGS += -Wno-strict-prototypes -Wno-unused-variable +CFLAGS += -Wno-unused-but-set-variable CFLAGS += -D__linux__ -include alloca.h CFLAGS += -Wno-incompatible-pointer-types CFLAGS += -Wno-implicit-function-declaration diff --git a/lte/alt1250/alt1250_devif.c b/lte/alt1250/alt1250_devif.c index a742938fbf7..39c490667d6 100644 --- a/lte/alt1250/alt1250_devif.c +++ b/lte/alt1250/alt1250_devif.c @@ -123,7 +123,7 @@ int altdevice_send_command(FAR struct alt1250_s *dev, int fd, } else { - /* In case of send successed */ + /* In case of send succeeded */ ret = container->outparam ? REP_NO_ACK_WOFREE : REP_NO_ACK; } @@ -173,7 +173,7 @@ int altdevice_seteventbuff(int fd, FAR struct alt_evtbuffer_s *buffer) ****************************************************************************/ int altdevice_getevent(int fd, FAR uint64_t *evtbitmap, - FAR struct alt_container_s **replys) + FAR struct alt_container_s **replies) { int ret = -EIO; struct alt_readdata_s dat; @@ -183,7 +183,7 @@ int altdevice_getevent(int fd, FAR uint64_t *evtbitmap, { ret = OK; *evtbitmap = dat.evtbitmap; - *replys = dat.head; + *replies = dat.head; } return ret; diff --git a/lte/alt1250/alt1250_devif.h b/lte/alt1250/alt1250_devif.h index c537754df19..01c689625d4 100644 --- a/lte/alt1250/alt1250_devif.h +++ b/lte/alt1250/alt1250_devif.h @@ -20,7 +20,7 @@ * ****************************************************************************/ -#ifndef __APSS_LTE_ALT1250_ALT1250_DEVIF_H +#ifndef __APPS_LTE_ALT1250_ALT1250_DEVIF_H #define __APPS_LTE_ALT1250_ALT1250_DEVIF_H /**************************************************************************** @@ -48,7 +48,7 @@ int altdevice_send_command(FAR struct alt1250_s *dev, int fd, int altdevice_powercontrol(int fd, uint32_t cmd); int altdevice_seteventbuff(int fd, FAR struct alt_evtbuffer_s *buffers); int altdevice_getevent(int fd, FAR uint64_t *evtbitmap, - FAR struct alt_container_s **replys); + FAR struct alt_container_s **replies); void altdevice_reset(int fd); #ifdef CONFIG_LTE_ALT1250_ENABLE_HIBERNATION_MODE int altdevice_powerresponse(int fd, uint32_t cmd, int resp); diff --git a/system/dd/dd_main.c b/system/dd/dd_main.c index f0804183656..9be5de7ac26 100644 --- a/system/dd/dd_main.c +++ b/system/dd/dd_main.c @@ -62,10 +62,18 @@ #define CONFIG_SYSTEM_DD_PROGNAME "dd" #endif #if !defined(__NuttX__) -#define FAR -#define NSEC_PER_USEC 1000 -#define USEC_PER_SEC 1000000 -#define NSEC_PER_SEC 1000000000 +# ifndef FAR +# define FAR +# endif +# ifndef NSEC_PER_USEC +# define NSEC_PER_USEC 1000 +# endif +# ifndef USEC_PER_SEC +# define USEC_PER_SEC 1000000 +# endif +# ifndef NSEC_PER_SEC +# define NSEC_PER_SEC 1000000000 +# endif #endif #define g_dd CONFIG_SYSTEM_DD_PROGNAME diff --git a/system/zlib/Makefile b/system/zlib/Makefile index 7c978a55295..43a09bb503e 100644 --- a/system/zlib/Makefile +++ b/system/zlib/Makefile @@ -31,6 +31,7 @@ CSRCS += zlib/contrib/minizip/zip.c CFLAGS += -Dunix -Wno-shadow -Wno-strict-prototypes -Wno-undef CFLAGS += ${INCDIR_PREFIX}zlib +zlib/test/infcover.c_CFLAGS += -Wno-format ZLIB_ZIP = zlib13.zip ZLIB_SRC = zlib diff --git a/testing/cxx/cxxtest/cxxtest_main.cxx b/testing/cxx/cxxtest/cxxtest_main.cxx index f33da9eed28..90663f95861 100644 --- a/testing/cxx/cxxtest/cxxtest_main.cxx +++ b/testing/cxx/cxxtest/cxxtest_main.cxx @@ -26,6 +26,7 @@ #include +#include #include #include #include