Wireshark mailing list archives

Clang warnings in packet-csn1.c - how to fix?


From: Chris Maynard <Chris.Maynard () gtech com>
Date: Thu, 17 Nov 2011 01:43:59 +0000 (UTC)

The following clang warnings look legit to me and are the result of pui8 not
being initialized before being used in the CSN_RECURSIVE_TARRAY,
CSN_RECURSIVE_TARRAY_2 and CSN_RECURSIVE_TARRAY_1 cases.  Anyone know what pui8
should be initialized to in those cases?

        Line 12: packet-csn1.c:1395:21: warning: The left expression of the compound
assignment is an uninitialized value. The computed value will also be garbage
        Line 13: packet-csn1.c:1332:23: warning: The left expression of the compound
assignment is an uninitialized value. The computed value will also be garbage


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


Current thread: