diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-12-31 21:43:43 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-01-01 05:44:21 +0000 |
commit | a6ce00feb3b233ed20b2b14f1238114a249f666a (patch) | |
tree | 79512aa838c1db0f2c000008c6c225aae42553ea /epan | |
parent | 8909dff72139d2f0514a7bb83c6bf5c2959c4101 (diff) |
Squelch a compiler warning from Xcode 8 clang.
Unless I'm missing something, that code can't be reached, so local_proto
should always be set.
Change-Id: Idf765552d66cce684eb0de8dc8da57382aaf8444
Reviewed-on: https://code.wireshark.org/review/19486
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index e7168fe968..93a15bed5a 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -5246,6 +5246,8 @@ tcp_dissect_options(tvbuff_t *tvb, int offset, guint length, int eol, } else { nop_count = 0; } + } else { + g_assert_not_reached(); } field_item = proto_tree_add_item(opt_tree, local_proto, tvb, offset, 1, ENC_NA); |