Skip to content

Commit 80fda3c

Browse files
committed
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>
1 parent 8146403 commit 80fda3c

7 files changed

Lines changed: 22 additions & 9 deletions

File tree

crypto/mbedtls/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ MBEDTLS_FRAMEWORK_UNPACKNAME = mbedtls-framework
4848
CFLAGS += ${DEFINE_PREFIX}unix
4949

5050
mbedtls/library/bignum.c_CFLAGS += -fno-lto
51+
mbedtls/library/ctr_drbg.c_CFLAGS += -Wno-array-bounds
5152

5253
# Build break on Assemble compiler if -fno-omit-frame-pointer and -O3 enabled at same time
5354
# {standard input}: Assembler messages:

interpreters/quickjs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ VERSION=\"$(QUICKJS_VERSION)\"
3535
CFLAGS += -Dmp_add=qjs_mp_add -Dmp_sub=qjs_mp_sub -Dmp_mul=qjs_mp_mul
3636
CFLAGS += -DCONFIG_VERSION=$(VERSION) -Wno-shadow
3737
CFLAGS += -Wno-array-bounds -I$(QUICKJS_UNPACK)
38+
CFLAGS += -Wno-strict-prototypes -Wno-unused-variable
39+
CFLAGS += -Wno-unused-but-set-variable
3840
CFLAGS += -D__linux__ -include alloca.h
3941
CFLAGS += -Wno-incompatible-pointer-types
4042
CFLAGS += -Wno-implicit-function-declaration

lte/alt1250/alt1250_devif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ int altdevice_send_command(FAR struct alt1250_s *dev, int fd,
123123
}
124124
else
125125
{
126-
/* In case of send successed */
126+
/* In case of send succeeded */
127127

128128
ret = container->outparam ? REP_NO_ACK_WOFREE : REP_NO_ACK;
129129
}
@@ -173,7 +173,7 @@ int altdevice_seteventbuff(int fd, FAR struct alt_evtbuffer_s *buffer)
173173
****************************************************************************/
174174

175175
int altdevice_getevent(int fd, FAR uint64_t *evtbitmap,
176-
FAR struct alt_container_s **replys)
176+
FAR struct alt_container_s **replies)
177177
{
178178
int ret = -EIO;
179179
struct alt_readdata_s dat;
@@ -183,7 +183,7 @@ int altdevice_getevent(int fd, FAR uint64_t *evtbitmap,
183183
{
184184
ret = OK;
185185
*evtbitmap = dat.evtbitmap;
186-
*replys = dat.head;
186+
*replies = dat.head;
187187
}
188188

189189
return ret;

lte/alt1250/alt1250_devif.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
****************************************************************************/
2222

23-
#ifndef __APSS_LTE_ALT1250_ALT1250_DEVIF_H
23+
#ifndef __APPS_LTE_ALT1250_ALT1250_DEVIF_H
2424
#define __APPS_LTE_ALT1250_ALT1250_DEVIF_H
2525

2626
/****************************************************************************
@@ -48,7 +48,7 @@ int altdevice_send_command(FAR struct alt1250_s *dev, int fd,
4848
int altdevice_powercontrol(int fd, uint32_t cmd);
4949
int altdevice_seteventbuff(int fd, FAR struct alt_evtbuffer_s *buffers);
5050
int altdevice_getevent(int fd, FAR uint64_t *evtbitmap,
51-
FAR struct alt_container_s **replys);
51+
FAR struct alt_container_s **replies);
5252
void altdevice_reset(int fd);
5353
#ifdef CONFIG_LTE_ALT1250_ENABLE_HIBERNATION_MODE
5454
int altdevice_powerresponse(int fd, uint32_t cmd, int resp);

system/dd/dd_main.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@
6262
#define CONFIG_SYSTEM_DD_PROGNAME "dd"
6363
#endif
6464
#if !defined(__NuttX__)
65-
#define FAR
66-
#define NSEC_PER_USEC 1000
67-
#define USEC_PER_SEC 1000000
68-
#define NSEC_PER_SEC 1000000000
65+
# ifndef FAR
66+
# define FAR
67+
# endif
68+
# ifndef NSEC_PER_USEC
69+
# define NSEC_PER_USEC 1000
70+
# endif
71+
# ifndef USEC_PER_SEC
72+
# define USEC_PER_SEC 1000000
73+
# endif
74+
# ifndef NSEC_PER_SEC
75+
# define NSEC_PER_SEC 1000000000
76+
# endif
6977
#endif
7078

7179
#define g_dd CONFIG_SYSTEM_DD_PROGNAME

system/zlib/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CSRCS += zlib/contrib/minizip/zip.c
3131

3232
CFLAGS += -Dunix -Wno-shadow -Wno-strict-prototypes -Wno-undef
3333
CFLAGS += ${INCDIR_PREFIX}zlib
34+
zlib/test/infcover.c_CFLAGS += -Wno-format
3435

3536
ZLIB_ZIP = zlib13.zip
3637
ZLIB_SRC = zlib

testing/cxx/cxxtest/cxxtest_main.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <nuttx/config.h>
2828

29+
#include <algorithm>
2930
#include <cstdio>
3031
#include <cassert>
3132
#include <cstdio>

0 commit comments

Comments
 (0)