[dpdk-dev] [PATCH 1/2] lib/librte_lpm: Fix anonymous union initialization issue

2016-03-25 Thread Michael Qiu
In SUSE11-SP3 i686 platform, with gcc 4.5.1, there is a compile issue: rte_lpm.c: In function ?add_depth_small_v20?: rte_lpm.c:778:7: error: unknown field ?next_hop? specified in initializer cc1: warnings being treated as errors The root casue is gcc only all

[dpdk-dev] [PATCH 1/2] lib/librte_lpm: Fix anonymous union initialization issue

2016-03-25 Thread Stephen Hemminger
Making code run with picky compilers is good, as long as it doesn't break other (more modern) compilers. > + new_tbl8_entry.next_hop=next_hop; Please run your patches through checkpatch, it will warn about missing whitespace like this.