[Xorp-users] Compile error on FreeBSD 5.3

Bernhard Schmidt berni@birkenwald.de
Tue, 11 Jan 2005 03:14:38 +0100


Hi,

just reporting, this has been in for some days now. FreeBSD 5.3 STABLE,
FreeBSD sources are from 03.01.05, cvs update has been done some minutes
ago. I tried it the last few days and it always broke with that error.

source='pa_backend_ipfw2.cc' object='pa_backend_ipfw2.lo' libtool=yes \
depfile='.deps/pa_backend_ipfw2.Plo'
tmpdepfile='.deps/pa_backend_ipfw2.TPlo' \
depmode=gcc3 /bin/sh ../config/depcomp \
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..
-O2 -W -Wall -Wwrite-strings -Wcast-qual -Werror -Wpointer-arith
-Wcast-align -Woverloaded-virtual -ftemplate-depth-22 -pipe -c -o
pa_backend_ipfw2.lo `test -f pa_backend_ipfw2.cc || echo
'./'`pa_backend_ipfw2.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -W -Wall -Wwrite-strings
-Wcast-qual -Werror -Wpointer-arith -Wcast-align -Woverloaded-virtual
-ftemplate-depth-22 -pipe -c pa_backend_ipfw2.cc -MT pa_backend_ipfw2.lo
-MD -MP -MF .deps/pa_backend_ipfw2.TPlo -o pa_backend_ipfw2.o
pa_backend_ipfw2.cc: In member function `int
PaIpfw2Backend::read_ruleset4(int, std::map<uint16_t,
std::vector<uint32_t, std::allocator<uint32_t> >, std::less<uint16_t>,
std::allocator<std::pair<const uint16_t, std::vector<uint32_t,
std::allocator<uint32_t> > > > >&)':
pa_backend_ipfw2.cc:497: warning: 'nbytes' might be used uninitialized
in this function

Bernhard