Wireshark mailing list archives

Build error with packet-cipmotion.c ?


From: Martin Mathieson via Wireshark-dev <wireshark-dev () wireshark org>
Date: Sat, 29 Aug 2020 20:52:33 +0100

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 () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: