Browse Source

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.
pr/rotary
Joakim Nohlgård 6 years ago
parent
commit
0f74b5b2a0
  1. 2
      tests/emb6/ping.c

2
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));

Loading…
Cancel
Save