Re: [ovs-dev] [PATCH 2/3] netdev-bsd: suppress clang warnings about alignment

2014-02-06 Thread YAMAMOTO Takashi
> On Wed, Feb 05, 2014 at 07:08:11PM +0900, YAMAMOTO Takashi wrote: >> Signed-off-by: YAMAMOTO Takashi > > Would you mind using the ALIGNED_CAST macro? It does the same thing > but makes it obvious why the cast is present. i was not aware of the macro. thanks. i'll take a look later. YAMAMOTO

Re: [ovs-dev] [PATCH 2/3] netdev-bsd: suppress clang warnings about alignment

2014-02-06 Thread Ben Pfaff
On Wed, Feb 05, 2014 at 07:08:11PM +0900, YAMAMOTO Takashi wrote: > Signed-off-by: YAMAMOTO Takashi Would you mind using the ALIGNED_CAST macro? It does the same thing but makes it obvious why the cast is present. ___ dev mailing list dev@openvswitch.o

[ovs-dev] [PATCH 2/3] netdev-bsd: suppress clang warnings about alignment

2014-02-05 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- lib/netdev-bsd.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 963fbac..6d4a4b2 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -548,7 +548,7 @@ struct pcap_arg { static