Wireshark-bugs: [Wireshark-bugs] [Bug 4393] Error when compiling due to uninitialized variables
Date: Wed, 13 Jan 2010 15:24:24 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4393

--- Comment #5 from Marco Schulze <marco.c.schulze@xxxxxxxxx> 2010-01-13 15:24:23 PST ---
So, after wasting time trying to figure out what was causing the error while
using the patched version of packet-dcerpc-netlogon.c (which was the most
stupid thing I did today), I was able to get a bit more info:

Exact error message:
cc1: warnings being treated as errors
packet-dcerpc-netlogon.c: In function ‘dissect_secchan_verf’:
packet-dcerpc-netlogon.c:7926: error: ‘encrypted_seq’ may be used uninitialized
in this function
packet-dcerpc-netlogon.c:7927: error: ‘digest’ may be used uninitialized in
this function
packet-dcerpc-netlogon.c:7928: error: ‘confounder’ may be used uninitialized in
this function

Faulty ./configure invocation:
CFLAGS="-O3" ./configure

There shouldn't be any problem in using '-O3', as it's only a shortcut for a
few more optimizations
(http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Optimize-Options.html), and, as
far as I can tell, has nothing to do with warnings and warnings-as-error (could
be wrong though, gcc is overly complicated...).

Also, this is not the first time I use CFLAGS="-O3" (I actually use CFLAGS="-O3
-march=native"), but it's the first time it causes this kind of behaviour. I'm
lost here.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.