]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pidl: Wireshark: Remove init of proto variables
authorJohn Thacker <johnthacker@gmail.com>
Wed, 3 Jul 2024 11:49:15 +0000 (07:49 -0400)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jul 2024 09:59:32 +0000 (09:59 +0000)
Pick up change from Wireshark as it applies to PIDL:

    commit 2a9bc63325c99653c5da873c273430add3b5e9dd
    Author: Stig Bjørlykke <stig@bjorlykke.org>
    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 <johnthacker@gmail.com>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/tests/wireshark-ndr.pl

index 229315b0a907344fcfa502699c98fa07f6665d0c..fd2fa55357f58beb7af9df428960ca1871fb0cdd 100755 (executable)
@@ -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;
 
 ");