[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings in Solaris compile



On Thu, 05 Aug 1999, Daniel Friedman <[email protected]> wrote:
> For the benefit of future efforts to eliminate minor annoyances (which
> may warn of bona fide bugs not yet discovered), here are the warnings I
> obtained when compiling ns-2.1b5 (from the ns-allinone-2.1b5a
> distribution) on a Solaris machine (SunOS 5.6).  I am posting this to
> the list because
> 

The following problem may be related to my difficulty with running the script
ns-2.1b5/tcl/http/tcp-mod-ex.tcl.  It seems to core dump on line 165, and when
I check the debugger, I can't indirect sf (it complains that it can't access
the memory location:

> 9) tcp-sink.cc > tcp-sink.cc: In method `void
TcpSink::ack(class Packet *)': > tcp-sink.cc:144: warning: `struct hdr_flags *
sf' might be used > 	uninitialized in this function
> tcp-sink.cc:165: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
> tcp-sink.cc:169: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
> tcp-sink.cc:169: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
> tcp-sink.cc:172: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
> tcp-sink.cc:176: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
> tcp-sink.cc:176: warning: `struct hdr_flags * this' might be used
> 	uninitialized in this function
>