Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boot/mcuboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PRIORITY += SCHED_PRIORITY_DEFAULT
STACKSIZE += $(CONFIG_DEFAULT_TASK_STACKSIZE)
endif

CFLAGS += -Wno-undef
CFLAGS += -Wno-undef -Wno-unused-but-set-variable

CSRCS := $(MCUBOOT_UNPACK)/boot/bootutil/src/boot_record.c \
$(MCUBOOT_UNPACK)/boot/bootutil/src/bootutil_misc.c \
Expand Down
1 change: 1 addition & 0 deletions lte/alt1250/alt1250_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static void notify_to_lapi_caller(sem_t *syncsem)
static int initialize_daemon(FAR struct alt1250_s *dev)
{
int ret;
UNSED(ret);

/* Initialize sub-system */

Expand Down
1 change: 1 addition & 0 deletions modbus/nuttx/porttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void vMBPortTimersEnable(void)
{
int res = gettimeofday(&xTimeLast, NULL);

UNUSED(res);
DEBUGASSERT(res == 0);
bTimeoutEnable = true;
}
Expand Down
6 changes: 6 additions & 0 deletions system/adb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ $(ADB_UNPACKDIR):
$(call DELFILE, $(ADB_VERSION).zip)
$(call MOVEFILE, $(ADB_UNPACKNAME)-$(ADB_VERSION), $(ADB_UNPACKDIR))

# Fix warnings in microADB
# Error: microADB/hal/hal_uv_client_usb.c:90:13: error: unused variable 'ret' [-Werror=unused-variable]
# 90 | int ret = uv_read_start((uv_stream_t*)&client->pipe,

CFLAGS += -Wno-error=unused-variable

# adb server app

PROGNAME := $(CONFIG_ADBD_PROGNAME)
Expand Down
2 changes: 2 additions & 0 deletions system/adb/logcat_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static void logcat_on_kick(struct adb_service_s *service)
if (!svc->wait_ack)
{
int ret;
UNUSED(ret);
ret = uv_poll_start(&svc->poll, UV_READABLE, logcat_on_data_available);
assert(ret == 0);
}
Expand All @@ -93,6 +94,7 @@ static void logcat_on_close(struct adb_service_s *service)
int ret;
logcat_service_t *svc = container_of(service, logcat_service_t, service);

UNUSED(ret);
ret = uv_fileno((uv_handle_t *)&svc->poll, &fd);
assert(ret == 0);

Expand Down
1 change: 1 addition & 0 deletions testing/getprime/getprime_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ static void get_prime_in_parallel(int n)
int status;
int i;

UNUSED(status);
status = pthread_attr_init(&attr);
ASSERT(status == OK);

Expand Down