numam-dpdk/lib/librte_pmd_enic
Marvin Liu 3fb20a41a4 enic: fix build with gcc < 4.4
gcc4.3 will raise warnings in blow code for initialized field overwritten.

enic_main.c: In function ‘enic_set_rsskey’:
enic_main.c:845: error: initialized field overwritten
enic_main.c:845: error: (near initialization for ‘rss_key.key’)
enic_main.c:846: error: initialized field overwritten
enic_main.c:846: error: (near initialization for ‘rss_key.key’)
enic_main.c:847: error: initialized field overwritten
enic_main.c:847: error: (near initialization for ‘rss_key.key’)

static union vnic_rss_key rss_key = {
	.key[0] = ...,
	.key[1] = ...,
	.key[2] = ...,
	.key[3] = ...,
};

Change struct initialized code reference to ISO 9899 section 6.7.8.
gcc4.3 will happy for that.

static union vnic_rss_key rss_key = {
	.key = {
		[0] = ...,
		[1] = ...,
		[2] = ...,
		[3] = ...,
	}

Signed-off-by: Marvin Liu <yong.liu@intel.com>
2015-03-23 00:31:19 +01:00
..
vnic enic: fix bsd namespace conflict 2015-02-24 20:21:50 +01:00
enic_clsf.c enic: remove useless cast 2015-03-04 21:50:42 +01:00
enic_compat.h enic: fix bsd namespace conflict 2015-02-24 20:21:50 +01:00
enic_ethdev.c ethdev: remove useless parameter in init functions 2015-03-09 18:07:44 +01:00
enic_main.c enic: fix build with gcc < 4.4 2015-03-23 00:31:19 +01:00
enic_res.c enic: new driver 2014-11-26 23:07:11 +01:00
enic_res.h enic: new driver 2014-11-26 23:07:11 +01:00
enic.h enic: fix bsd namespace conflict 2015-02-24 20:21:50 +01:00
LICENSE enic: license 2014-11-26 23:07:11 +01:00
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_pmd_enic_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00