]> The Tcpdump Group git mirrors - libpcap/commit
Squelch a narrowing warning
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 23 Jun 2021 11:53:18 +0000 (13:53 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 23 Jun 2021 12:12:35 +0000 (14:12 +0200)
commit0ac001846207133b45e474a2725905b62f0bc086
tree95f07ccabab77b372d7a9b5da730d3f4a18b3d2d
parent160d5117cc1bee64b53b95de15e50cf78a775524
Squelch a narrowing warning

Ignore the warning in the way to enable build with -Werror.

To be look at before 2038...

The warning was (clang 64 bits):
./pcap-netfilter-linux.c:346:12: warning: implicit conversion loses
integer precision: 'time_t' (aka 'long') to 'unsigned int'
[-Wshorten-64-to-32]
                seq_id = time(NULL);
                       ~ ^~~~~~~~~~

(cherry picked from commit 16782c7e7811c2bc821c1f58ae948af7bccf81fe)
pcap-netfilter-linux.c