Skip to content

Commit 08c9ae3

Browse files
author
Naveen Kaje
committed
targets: QUECTEL: Fix build warning
Fix the following warning seen when built with GCC_ARM with mbed-cli v1.8.3 $ mbed compile -c -t GCC_ARM -m K64F <snip> [Warning] QUECTEL_M26_CellularStack.cpp@364,9: variable 'sent_acked' set but not used [-Wunused-but-set-variable] <snip>
1 parent 3d4582b commit 08c9ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,10 @@ nsapi_size_or_error_t QUECTEL_M26_CellularStack::socket_sendto_impl(CellularSock
361361
const void *data, nsapi_size_t size)
362362
{
363363
int sent_len = (size > M26_SENT_BYTE_MAX) ? M26_SENT_BYTE_MAX : size;
364-
int sent_acked = 0;
365364
int sent_nacked = 0;
366365
int sent_len_before = 0;
367366
int sent_len_after = 0;
367+
int sent_acked;
368368
nsapi_error_t error;
369369

370370
tr_debug("QUECTEL_M26_CellularStack:%s:%u:[%d-%d]", __FUNCTION__, __LINE__, sent_len, size);

0 commit comments

Comments
 (0)