numam-dpdk/app
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
..
cmdline_test app: no more bare metal environment 2014-11-27 13:09:55 +01:00
dump_cfg app: no more bare metal environment 2014-11-27 13:09:55 +01:00
test use simple zero initializers 2015-04-20 14:37:36 +02:00
test-acl acl: remove standalone header 2015-02-02 12:30:33 +01:00
test-pipeline tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
test-pmd doc: update testpmd guide about csum forward engine 2015-03-31 02:55:07 +02:00
Makefile app/pipeline: packet framework benchmark 2014-06-17 03:34:11 +02:00