Wireshark-dev: Re: [Wireshark-dev] Build error with packet-cipmotion.c ?
From: Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx>
Date: Sun, 30 Aug 2020 16:38:51 +0100

On Sun, Aug 30, 2020 at 10:22 AM Dario Lombardo <lomato@xxxxxxxxx> wrote:
I'm seeing the same thing on several builders. It definitely needs fixing.

On Sat, Aug 29, 2020, 21:53 Martin Mathieson via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:
I am seeing this error with current master:

/home/martin/wireshark_gl/epan/dissectors/packet-cipmotion.c: In function ‘dissect_cipmotion3’:
/home/martin/wireshark_gl/epan/dissectors/packet-cipmotion.c:2173:4: error: missing initializer for field ‘TransportClass_trigger’ of ‘cip_conn_info_t’ [-Werror=missing-field-initializers]
    cip_conn_info_t conn_info = {0};
    ^
In file included from /home/martin/wireshark_gl/epan/dissectors/packet-cipmotion.h:15:0,
                 from /home/martin/wireshark_gl/epan/dissectors/packet-cipmotion.c:23:
/home/martin/wireshark_gl/epan/dissectors/packet-cip.h:503:28: note: ‘TransportClass_trigger’ declared here
    guint8                  TransportClass_trigger;


cip_conn_info_t has 13 fields though (compiler above is complaining about the 2nd field).
Am I missing something?

Martin

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe