5c0bdc3203
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>
17 lines
526 B
Meson
17 lines
526 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
sources = files('rte_telemetry.c', 'rte_telemetry_parser.c', 'rte_telemetry_parser_test.c')
|
|
headers = files('rte_telemetry.h', 'rte_telemetry_internal.h', 'rte_telemetry_parser.h')
|
|
deps += ['metrics', 'ethdev']
|
|
cflags += '-DALLOW_EXPERIMENTAL_API'
|
|
|
|
jansson = dependency('jansson', required: false)
|
|
if jansson.found()
|
|
ext_deps += jansson
|
|
dpdk_app_link_libraries += ['telemetry']
|
|
else
|
|
build = false
|
|
reason = 'missing dependency "jansson"'
|
|
endif
|