telemetry: fix build with gcc 9
authorFlavia Musatescu <flavia.musatescu@intel.com>
Wed, 3 Jul 2019 09:23:43 +0000 (10:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 16:48:04 +0000 (18:48 +0200)
commit5c0bdc32034b2464305ee55b5829a45451f221ef
tree1b8631a631f9748c6c9789fd65c687c4967e5bb4
parentdb1f2f8a9fe54eeb20c769ca78b2ee52595b4954
telemetry: fix build with gcc 9

Suppress the unaligned packed member address warnings by extending
the telemetry library build flags with -Wno-address-of-packed-member
option, through the WERROR_FLAGS makefile variable.

With this change additional warnings are turned on to be treated as errors,
which causes the following build issues to be seen:
- no previous prototype [-Werror=missing-prototypes]
- initialization discards â€˜const’ qualifier from pointer target type
  [-Werror=discarded-qualifiers]
- old-style function definition [-Werror=old-style-definition]
- variable may be used before its value is set (when using icc compiler).

Fixes: 0fe3a37924d4 ("telemetry: format json response when sending stats")
Fixes: ee5ff0d3297e ("telemetry: add client feature and sockets")
Fixes: 8877ac688b52 ("telemetry: introduce infrastructure")
Fixes: 1b756087db93 ("telemetry: add parser for client socket messages")
Fixes: fff6df7bf58e ("telemetry: fix using ports of different types")
Fixes: 4080e46c8078 ("telemetry: support global metrics")
Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Signed-off-by: Flavia Musatescu <flavia.musatescu@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
lib/librte_telemetry/Makefile
lib/librte_telemetry/meson.build
lib/librte_telemetry/rte_telemetry.c
lib/librte_telemetry/rte_telemetry_internal.h
lib/librte_telemetry/rte_telemetry_parser.c
lib/librte_telemetry/rte_telemetry_parser_test.c
lib/librte_telemetry/rte_telemetry_parser_test.h [deleted file]