Wireshark-dev: Re: [Wireshark-dev] Patch to fix broken compilation

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Wed, 25 Jul 2007 13:19:05 -0400
Florent Drouin wrote:
[...]
generic_decoder.c  -fPIC -DPIC -o .libs/mac_hd_generic_decoder.o
mac_hd_generic_decoder.c: In function `dissect_mac_header_generic_decoder':
mac_hd_generic_decoder.c:1493: warning: `payload_length' might be used uninitialized in this function mac_hd_generic_decoder.c:1502: warning: `new_payload_len' might be used uninitialized in this function
make[3]: *** [mac_hd_generic_decoder.lo] Error 1

My GCC (3.4.4) is either smarter or stupider than yours because it doesn't warn on those. After taking a brief look it appears the warnings are false positives--I checked in your change (rev 22401).