Alexey Marchuk bad3c0e51d meson/mlx5: Suppress -Wunused-value diagnostic
mlx5 common library checks if several symbols/definitions
are presented in system header files. If some are not
presented, they will be enabled by mlx5_glue library.
The problem appears with clang and '-Werror' - code
generated by meson is not compiled due to unused variable:

Code:

        #include <infiniband/mlx5dv.h>
        int main(void) {
            /* If it's not defined as a macro, try to use as a symbol */
            #ifndef mlx5dv_create_flow_action_packet_reformat
                mlx5dv_create_flow_action_packet_reformat;
            #endif
            return 0;
        }
Compiler stdout:

Compiler stderr:
 /hpc/local/work/alexeymar/repo/spdk/dpdk/build-tmp/meson-private/tmp5obnak86/testfile.c:6:17: error: expression result unused [-Werror,-Wunused-value]
                mlx5dv_create_flow_action_packet_reformat;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As result, almost all symbols are enabled in mlx5_glue while
they exist is system headers. As result, we get multiple
symbols redefenitions when we compile mlx5_common.
As a solution for this problem we can suppress
-Wunused-vaurable using pragma

Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Change-Id: I03ba5d03f7e53d8e593a9de1deace5140c67d21d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/dpdk/+/8795
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2021-07-22 15:37:29 +00:00
2021-05-20 23:10:22 +02:00
2021-07-22 13:21:58 +00:00
2021-05-21 16:52:55 +02:00
2016-11-13 15:25:12 +01:00
2021-05-18 19:06:56 +02:00
2021-04-16 14:09:03 +02:00
2021-02-15 11:08:19 +01:00
2020-09-07 23:51:57 +02:00
2018-01-04 22:41:38 +01:00
2021-05-21 17:53:33 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org
S
Description
No description provided
Readme 164 MiB
Languages
C 99.1%
Meson 0.4%
Python 0.3%
Shell 0.1%