buildtools: zero elf info variable in pmdinfogen
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 5 Sep 2017 13:27:58 +0000 (14:27 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 14 Sep 2017 12:20:41 +0000 (14:20 +0200)
commit0decf84217f1ef8af132948a0661559a96961495
treee2fb0ec8898d716932cefaf8b635ae6b76b36109
parent97f1e196799f5664a2f677f789fbe06e1d5ab87a
buildtools: zero elf info variable in pmdinfogen

This commit zeros out the elf_info struct at startup of the
pmdinfogen code. If it is not zeroed, later in the code gcc
produces "may be unused" prints. Clang does not report any
issue.

This issue is only observed when compiling pmdinfogen as an
optimized build, hence this warning is not disabled in the
existing Makefile.

This commit enables a simplification in the meson build
system, removing the requirement for "-Wno-maybe-uninitialized".

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
buildtools/pmdinfogen/pmdinfogen.c