From 0f74b5b2a081943e292dff2934f263b3e2456e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Fri, 10 Feb 2017 10:40:52 +0100 Subject: [PATCH] tests/emb6: Revert workaround for false positive This line gave a -Wunused-value in gcc-4.6 before the stdatomic.h header for msp430 was modified as a workaround. --- tests/emb6/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/emb6/ping.c b/tests/emb6/ping.c index 1f06fb536e..e83f9d64e6 100644 --- a/tests/emb6/ping.c +++ b/tests/emb6/ping.c @@ -90,7 +90,7 @@ static void handle_reply(uip_ipaddr_t *source, uint8_t ttl, uint8_t *data, ipv6_addr_to_str(addr_str, (ipv6_addr_t *)source, sizeof(addr_str)); - (void)atomic_fetch_add(&received, 1); /* Ignore return value, we only want to increment the counter */ + atomic_fetch_add(&received, 1); printf("%" PRIu16 " bytes from %s: icmp_seq=%" PRIu16 " ttl=%u quota=%i/%i\n", datalen, addr_str, byteorder_ntohs(ping->seq), (unsigned)ttl, atomic_load(&received), atomic_load(&num));