[dpdk-dev] [PATCH] eal: fix Wbad-function-cast warning

2015-03-16 Thread Mcnamara, John
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Monday, March 16, 2015 1:19 PM > To: Mcnamara, John > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] eal: fix Wbad-function-cast warning > > > This looks reasonable, but

[dpdk-dev] [PATCH] eal: fix Wbad-function-cast warning

2015-03-16 Thread John McNamara
Fix a warning when the rte_common.h header is included in a compilation using -Wbad-function-cast, such as in Open vSwitch where the following warning is emitted repeatedly: ../rte_common.h: In function 'rte_is_aligned': ../rte_common.h:184:9: warning: cast from function call of type

[dpdk-dev] [PATCH] eal: fix Wbad-function-cast warning

2015-03-16 Thread Neil Horman
On Mon, Mar 16, 2015 at 03:04:45PM +, Mcnamara, John wrote: > > -Original Message- > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Monday, March 16, 2015 1:19 PM > > To: Mcnamara, John > > Cc: dev at dpdk.org > > Subject: Re: [dpdk

[dpdk-dev] [PATCH] eal: fix Wbad-function-cast warning

2015-03-16 Thread Neil Horman
On Mon, Mar 16, 2015 at 12:56:04PM +, John McNamara wrote: > Fix a warning when the rte_common.h header is included in a compilation > using -Wbad-function-cast, such as in Open vSwitch where the > following warning is emitted repeatedly: > > ../rte_common.h: In function 'rte_is_aligned':