[ovs-dev] [bundle 2/2] bundle: Avoid GCC 4.5 warning about possibly uninitialized value.

Ben Pfaff blp at nicira.com
Wed Jul 20 19:29:51 UTC 2011


Thank you.  I pushed these patches.

On Wed, Jul 20, 2011 at 11:22:06AM -0700, Ethan Jackson wrote:
> Looks Good, thanks.
> 
> Ethan
> 
> On Wed, Jul 20, 2011 at 09:52, Ben Pfaff <blp at nicira.com> wrote:
> > This value is not actually uninitialized but GCC 4.5 cannot tell.
> > ---
> > ?lib/bundle.c | ? ?1 +
> > ?1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/lib/bundle.c b/lib/bundle.c
> > index 996955f..e6b1c25 100644
> > --- a/lib/bundle.c
> > +++ b/lib/bundle.c
> > @@ -46,6 +46,7 @@ bundle_execute(const struct nx_action_bundle *nab, const struct flow *flow,
> >
> > ? ? flow_hash = flow_hash_fields(flow, ntohs(nab->fields), ntohs(nab->basis));
> > ? ? best = -1;
> > + ? ?best_hash = 0;
> >
> > ? ? for (i = 0; i < ntohs(nab->n_slaves); i++) {
> > ? ? ? ? if (slave_enabled(bundle_get_slave(nab, i), aux)) {
> > --
> > 1.7.4.4
> >
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
> >



More information about the dev mailing list