]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix a warning
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 18:49:27 +0000 (20:49 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Apr 2019 18:49:27 +0000 (20:49 +0200)
The warning was:
./gencode.c:8313:17: warning: code will never be executed
[-Wunreachable-code]

gencode.c

index 585ea01efebfcc1a9774de2280991f015caf3116..b0f26f678c3ef7db9fd284e73b47aa7a38393fdd 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -8310,7 +8310,6 @@ gen_inbound(compiler_state_t *cstate, int dir)
                        /* We have a FILE *, so this is a savefile */
                        bpf_error(cstate, "inbound/outbound not supported on %s when reading savefiles",
                            pcap_datalink_val_to_description_or_dlt(cstate->linktype));
-                       b0 = NULL;
                        /*NOTREACHED*/
                }
                /* match outgoing packets */