X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6193b88600f3d4bc506f3b36015279476ef03f02..dd821c4f84a9d4956fc39a3a2359cf4ee4652e72:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index a7756be5..9ec0aaf1 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -2326,8 +2326,11 @@ main(int argc, char **argv) * on; this may be a non-Linux "any" device * that doesn't support DLT_LINUX_SLL2. */ - if (strcmp(device, "any") == 0) + if (strcmp(device, "any") == 0) { +DIAG_OFF_WARN_UNUSED_RESULT (void) pcap_set_datalink(pd, DLT_LINUX_SLL2); +DIAG_ON_WARN_UNUSED_RESULT + } } #endif i = pcap_snapshot(pd);