mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps: Fix minor issues for latest toolchains
- crypto/mbedtls: Add -Wno-cpp flag to suppress warnings - interpreters/quickjs: Add flags to suppress warnings - lte/alt1250: Fix spelling issues in comments - system/dd: Add missing includes for modern compilers - system/zlib: Add -Wno-cpp flag - testing/cxx: Include missing algorithm header Signed-off-by: Bartosz <bartol2205@gmail.com>
This commit is contained in:
parent
715da6bde6
commit
f09d0b2e09
7 changed files with 22 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue