From: John Thacker Date: Wed, 3 Jul 2024 11:49:15 +0000 (-0400) Subject: pidl: Wireshark: Remove init of proto variables X-Git-Tag: tdb-1.4.11~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2ed371e1cc0115f9e8f1794220ffa36f2c51c61;p=thirdparty%2Fsamba.git pidl: Wireshark: Remove init of proto variables Pick up change from Wireshark as it applies to PIDL: commit 2a9bc63325c99653c5da873c273430add3b5e9dd Author: Stig Bjørlykke Date: Mon Nov 20 08:16:40 2023 +0100 Remove init of proto variables Remove init of proto, header field, expert info and subtree variables. This will reduces the binary size by approximate 1266320 bytes due to using .bss to zero-initialize the fields. The conversion is done using the tools/convert-proto-init.py script Signed-off-by: John Thacker Reviewed-by: Jo Sutton Reviewed-by: Stefan Metzmacher --- diff --git a/pidl/tests/wireshark-ndr.pl b/pidl/tests/wireshark-ndr.pl index 229315b0a90..fd2fa55357f 100755 --- a/pidl/tests/wireshark-ndr.pl +++ b/pidl/tests/wireshark-ndr.pl @@ -234,7 +234,7 @@ is($x->DumpHfList(), "\tstatic hf_register_info hf[] = { is($x->DumpHfDeclaration(), " /* Header field declarations */ -static gint hf_bla = -1; +static gint hf_bla; ");