Acked-by: Jarno Rajahalme <jrajaha...@nicira.com>
> On Jan 21, 2014, at 3:06 PM, Ethan Jackson <et...@nicira.com> wrote: > > When compiling with -O3, GCC can no longer tell that the following > warnings are not valid. At any rate, they're easy enough to silence. > > ofp-parse.c:764:45: error: 'ttl' may be used uninitialized in this > function > > ofp-parse.c:752:17: error: 'ecn' may be used uninitialized in this > function > > Signed-off-by: Ethan Jackson <et...@nicira.com> > --- > lib/ofp-parse.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c > index 251adfa..b254ac6 100644 > --- a/lib/ofp-parse.c > +++ b/lib/ofp-parse.c > @@ -639,7 +639,9 @@ parse_named_action(enum ofputil_action_code code, > char *error = NULL; > uint16_t ethertype = 0; > uint16_t vid = 0; > - uint8_t tos = 0, ecn, ttl; > + uint8_t tos = 0; > + uint8_t ecn = 0; > + uint8_t ttl = 0; > uint8_t pcp = 0; > > switch (code) { > -- > 1.8.1.2 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev