Re: [ovs-dev] [PATCH] ofproto-dpif: Fix GCC warning.

2012-01-02 Thread Ben Pfaff
Fair enough. I added a comment and pushed. On Thu, Dec 29, 2011 at 12:10:41AM -0600, Justin Pettit wrote: > Ben, do you think it's worth putting a small comment above the assignment? > Otherwise, it looks kind of odd. > > --Justin > > > On Dec 28, 2011, at 10:50 PM, Ethan Jackson wrote: > >

Re: [ovs-dev] [PATCH] ofproto-dpif: Fix GCC warning.

2011-12-28 Thread Justin Pettit
Ben, do you think it's worth putting a small comment above the assignment? Otherwise, it looks kind of odd. --Justin On Dec 28, 2011, at 10:50 PM, Ethan Jackson wrote: > Looks good. > > Ethan > > On Tue, Dec 27, 2011 at 14:32, Ben Pfaff wrote: >> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

Re: [ovs-dev] [PATCH] ofproto-dpif: Fix GCC warning.

2011-12-28 Thread Ethan Jackson
Looks good. Ethan On Tue, Dec 27, 2011 at 14:32, Ben Pfaff wrote: > gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) warned: > >    ofproto/ofproto-dpif.c: In function 'bundle_send_learning_packets': >    ofproto/ofproto-dpif.c:1835: warning: dereferencing type-punned pointer >    will break strict-a

[ovs-dev] [PATCH] ofproto-dpif: Fix GCC warning.

2011-12-27 Thread Ben Pfaff
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) warned: ofproto/ofproto-dpif.c: In function 'bundle_send_learning_packets': ofproto/ofproto-dpif.c:1835: warning: dereferencing type-punned pointer will break strict-aliasing rules I agree that its analysis matches what the C standard says.