Wireshark-commits: [Wireshark-commits] master-1.12 0c7032c: pcap-common: fix build error with gcc5
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0c7032cceb16c8a3154eb16c636bc134862355db
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark
Commits:
0c7032c by Daniel Mack (daniel@xxxxxxxxxx):
pcap-common: fix build error with gcc5
gcc5 complains about the issue below, so add a trivial fixup.
CC libwiretap_la-pcap-common.lo
pcap-common.c: In function 'pcap_byteswap_nflog_pseudoheader':
pcap-common.c:1290:30: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if (!(nfhdr->nflog_version) == 0) {
^
cc1: all warnings being treated as errors
Change-Id: I9f5b090ffd564f203cc3fb4ff302f2e4752865f0
Reviewed-on: https://code.wireshark.org/review/7336
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit a6f4bdb874169b7ac6564fa5c17be95fed0aa8ef)
Reviewed-on: https://code.wireshark.org/review/7343
Actions performed:
from f49ab95 epan: fix build error with gcc5
adds 0c7032c pcap-common: fix build error with gcc5
Summary of changes:
wiretap/pcap-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)