numam-dpdk/lib/librte_pmd_enic
Thomas Monjalon f12f13f2f6 use simple zero initializers
To initialize a structure with zeros, one field was explicitly set
to avoid "missing initializer" bug with old GCC (e.g. 4.4).
This warning is now disabled (commit <insertlater>) for old versions of GCC,
so the workarounds may be removed.

These initializers should not be needed for static variables but they
are still used to workaround an ICC bug (see commit b2595c4aa9).

There is one remaining exception where {0} initializer doesn't work cleanly,
even with recent GCC:
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c:735:9:
error: missing braces around initializer [-Werror=missing-braces]
  struct rte_mbuf mb_def = {0}; /* zeroed mbuf */

Tested with gcc-4.4.7 (CentOS), gcc-4.7.2 (Debian), gcc-4.9.2 (Arch),
clang-3.6.0 and icc-13.1.1.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Tested-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Tested-by: John McNamara <john.mcnamara@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Vlad Zolotarov <vladz@cloudius-systems.com>
2015-04-20 14:37:36 +02:00
..
vnic enic: fix possible data loss 2015-03-30 19:10:15 +02:00
enic_clsf.c use simple zero initializers 2015-04-20 14:37:36 +02:00
enic_compat.h enic: fix possible data loss 2015-03-30 19:10:15 +02:00
enic_ethdev.c ethdev: make dev_ops const 2015-04-13 22:50:10 +02:00
enic_main.c pmd: remove useless null checks before rte_free 2015-04-13 22:50:10 +02: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 possible data loss 2015-03-30 19:10:15 +02: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