From 5a5e68c274739c9f05833b881e6dc21fc3829f74 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Wed, 3 Jul 2024 07:50:55 -0400 Subject: [PATCH] pidl: Wireshark: Don't initialise static hf and ett variables. Pick up change from Wireshark: commit 9ca6eff53db29cad7dfc7e57fba4d68e9c838ab5 Author: Anders Broman Date: Thu May 2 14:14:29 2024 +0200 PIDL: Don't initialise static hf and ett variables. Signed-off-by: John Thacker Reviewed-by: Jo Sutton Reviewed-by: Stefan Metzmacher --- pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index 64e1fd8bd96..48c090497fe 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -1231,7 +1231,7 @@ sub DumpEttDeclaration my ($ett) = @_; my $res = "\n/* Ett declarations */\n"; foreach (@$ett) { - $res .= "static gint $_ = -1;\n"; + $res .= "static gint $_;\n"; } return "$res\n"; @@ -1297,7 +1297,7 @@ sub DumpHfDeclaration($) foreach (sort(keys %{$self->{conformance}->{header_fields}})) { - $res .= "static gint $_ = -1;\n"; + $res .= "static gint $_;\n"; } return "$res\n"; -- 2.47.3