From: Guy Harris Date: Sat, 15 Sep 2018 16:51:46 +0000 (-0700) Subject: Squelch some warnings. X-Git-Tag: libpcap-1.10-bp~805 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/640cdccaf5100e8b97674f64a267877201a882ca?ds=sidebyside Squelch some warnings. --- diff --git a/pcap-linux.c b/pcap-linux.c index f37d74e1..38d4a71a 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -1488,7 +1488,8 @@ static void pcap_breakloop_linux(pcap_t *handle) struct pcap_linux *handlep = handle->priv; uint64_t value = 1; - write(handlep->poll_breakloop_fd, &value, sizeof(value)); + /* XXX - what if this fails? */ + (void)write(handlep->poll_breakloop_fd, &value, sizeof(value)); } #endif @@ -5047,7 +5048,7 @@ static int pcap_wait_for_frames_mmap(pcap_t *handle) #ifdef HAVE_SYS_EVENTFD_H if (pollinfo[1].revents & POLLIN) { uint64_t value; - read(handlep->poll_breakloop_fd, &value, sizeof(value)); + (void)read(handlep->poll_breakloop_fd, &value, sizeof(value)); } #endif