<br><tt><font size=2>Chris Lalancette <clalance@redhat.com> wrote
on 04/05/2010 04:55:10 PM:<br>
<br>
</font></tt>
<br><tt><font size=2>> <br>
> On 04/05/2010 04:33 PM, Chris Lalancette wrote:<br>
> > #ifndef ETHERTYPE_IPV6<br>
> > #define ETHERTYPE_IPV6 0x86dd<br>
> > #endif<br>
> <br>
> I did test this quickly, and while this helps, I then run into this<br>
> error:<br>
> <br>
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gnulib/lib -I../gnulib/lib
-<br>
> I../include -I../src/util -I../include -I/usr/include/libxml2 -<br>
> DLIBDIR=\"/usr/local/lib\" -DBINDIR=\"/usr/local/libexec\"
-<br>
> DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\"
-<br>
> DLOCALEBASEDIR=\"/usr/local/share/locale\" -DPKGDATADIR=\"/usr/<br>
> local/share/libvirt\" -DLOCAL_STATE_DIR=\"/usr/local/var\"
-<br>
> DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security
-<br>
> Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -<br>
> Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-<br>
> prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-<br>
> D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -<br>
> fdiagnostics-show-option -Werror -DIN_LIBVIRT -g -O2 -MT <br>
> libvirt_conf_la-nwfilter_conf.lo -MD -MP -MF .deps/libvirt_conf_la-<br>
> nwfilter_conf.Tpo -c conf/nwfilter_conf.c  -fPIC -DPIC -o .libs/<br>
> libvirt_conf_la-nwfilter_conf.o<br>
> cc1: warnings being treated as errors<br>
> conf/nwfilter_conf.c: In function 'virNWFilterDefParseNode':<br>
> conf/nwfilter_conf.c:1130: warning: 'data_ptr' may be used <br>
> uninitialized in this function<br>
> conf/nwfilter_conf.c:1556: warning: 'found_i' may be used <br>
> uninitialized in this function<br>
> make[3]: *** [libvirt_conf_la-nwfilter_conf.lo] Error 1<br>
> <br>
> It seems like the gcc in RHEL-5 might not be able to figure out that
data_ptr<br>
> can never be used uninitialized because it is protected by found.
 <br>
> The situation<br>
> with found_i is similar.  Should we set these to default values
to <br>
> shut the compiler up?</font></tt>
<br>
<br><tt><font size=2>That's probably the right thing to do. </font></tt>
<br><tt><font size=2>I'll post a patch shortly.</font></tt>
<br>
<br><tt><font size=2>  Stefan</font></tt>
<br><tt><font size=2><br>
> <br>
> -- <br>
> Chris Lalancette<br>
</font></tt>