numam-dpdk/lib/librte_telemetry
Flavia Musatescu 5c0bdc3203 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: 0fe3a37924 ("telemetry: format json response when sending stats")
Fixes: ee5ff0d329 ("telemetry: add client feature and sockets")
Fixes: 8877ac688b ("telemetry: introduce infrastructure")
Fixes: 1b756087db ("telemetry: add parser for client socket messages")
Fixes: fff6df7bf5 ("telemetry: fix using ports of different types")
Fixes: 4080e46c80 ("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>
2019-07-04 18:48:04 +02:00
..
Makefile telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
meson.build telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_internal.h telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_parser_test.c telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_parser.c telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_parser.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_telemetry_socket_tests.h telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry_version.map telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry.c telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00