| Hi,
Well, yes of course, that takes care of that problem, which eventually would need to be done. OTOH, does this then result in a dead-code warning? Maybe not from the compiler, but then from static code analysis. So this was more to see what would happen then.
Thanks, Jaap
On 5 Oct 2025, at 22:23, Timo Warns <timo.warns@xxxxxxxxx> wrote:
Hi,
Well, you might as well remove that function (asterix_parse_re_field) from compilation, since it doesn’t seem to be used…
Thanks, Jaap
Hi,
What happens if you pull again?
Pulled as hard as I could. No go. Y. Thanks, Jaap
> On 5 Oct 2025, at 15:43, Yaniv Kaul via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote: > > Failure: > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c: In function ‘asterix_parse_re_field.constprop’: > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c:290:44: error: ‘table_p.table_pointer’ may be used uninitialized [-Werror=maybe-uninitialized] > 290 | offset += table_p.table_pointer[i](tvb, offset, tree, expand_value); > | ~~~~~~~~~~~~~~~~~~~~~^~~ > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c:278:18: note: ‘table_p.table_pointer’ was declared here > 278 | table_params table_p; > | ^~~~~~~ > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c:284:18: error: ‘table_p.table_pointer_expand’ may be used uninitialized [-Werror=maybe-uninitialized] > 284 | int *expand = table_p.table_pointer_expand[i]; > | ^~~~~~ > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c:278:18: note: ‘table_p.table_pointer_expand’ was declared here > 278 | table_params table_p; > | ^~~~~~~ > /home/ykaul/github/wireshark/epan/dissectors/packet-asterix.c:278:18: error: ‘table_p.table_size’ may be used uninitialized [-Werror=maybe-uninitialized] >
|