summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorHarry van Haaren <harry.van.haaren@intel.com>2017-09-05 14:27:58 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-09-14 14:20:41 +0200
commit0decf84217f1ef8af132948a0661559a96961495 (patch)
treee2fb0ec8898d716932cefaf8b635ae6b76b36109 /buildtools
parent97f1e196799f5664a2f677f789fbe06e1d5ab87a (diff)
downloaddpdk-0decf84217f1ef8af132948a0661559a96961495.zip
dpdk-0decf84217f1ef8af132948a0661559a96961495.tar.gz
dpdk-0decf84217f1ef8af132948a0661559a96961495.tar.xz
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>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/pmdinfogen/pmdinfogen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c
index ba1a12e..e73fc76 100644
--- a/buildtools/pmdinfogen/pmdinfogen.c
+++ b/buildtools/pmdinfogen/pmdinfogen.c
@@ -397,7 +397,7 @@ static void output_pmd_info_string(struct elf_info *info, char *outfile)
int main(int argc, char **argv)
{
- struct elf_info info;
+ struct elf_info info = {0};
int rc = 1;
if (argc < 3) {