[dpdk-dev] [PATCH] pci: fix bsd build with gcc

2015-08-04 Thread Thomas Monjalon
2015-08-04 16:05, Bruce Richardson: > On Tue, Aug 04, 2015 at 04:27:45PM +0200, Thomas Monjalon wrote: > > GCC 4.8 raises this error: > > lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards > > '__attribute__((const))' qualifier from pointer target type > >.pi_data = *(u_int32_t *)

[dpdk-dev] [PATCH] pci: fix bsd build with gcc

2015-08-04 Thread Thomas Monjalon
GCC 4.8 raises this error: lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards '__attribute__((const))' qualifier from pointer target type .pi_data = *(u_int32_t *)buf, ^ Note: this assignment seems useless because pi_data is filled with memset later. Fixes: 632b2d1

[dpdk-dev] [PATCH] pci: fix bsd build with gcc

2015-08-04 Thread Bruce Richardson
On Tue, Aug 04, 2015 at 04:27:45PM +0200, Thomas Monjalon wrote: > GCC 4.8 raises this error: > lib/librte_eal/bsdapp/eal/eal_pci.c:453:15: error: cast discards > '__attribute__((const))' qualifier from pointer target type >.pi_data = *(u_int32_t *)buf, >^ > > Note: this assign