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

2015-03-17 Thread Thomas Monjalon
2015-03-16 13:52, Neil Horman: > On Mon, Mar 16, 2015 at 05:05:06PM +, 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: > > > > ../

[dpdk-dev] [PATCH v2] 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 v2] eal: fix Wbad-function-cast warning

2015-03-16 Thread Neil Horman
On Mon, Mar 16, 2015 at 05:05:06PM +, 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':