c3e89f69fa
This rewrites the MKSTR macro appending an empty string to its arguments to resolve build failures similar to: drivers/net/mlx4/mlx4.c:461:14: fatal error: format string is not a string literal [-Wformat-nonliteral] MKSTR(path, "%s/device/uevent", device->ibdev_path); drivers/net/mlx4/mlx4_utils.h:82:30: note: expanded from macro 'MKSTR' char name[snprintf(NULL, 0, __VA_ARGS__) + 1]; \ drivers/net/mlx5/mlx5_stats.c:144:15: fatal error: format string is not a string literal [-Wformat-nonliteral] MKSTR(path, "%s/ports/%d/hw_counters/%s", drivers/net/mlx5/mlx5_utils.h:149:30: note: expanded from macro 'MKSTR' char name[snprintf(NULL, 0, __VA_ARGS__) + 1]; \ The errors reproduce with clang version 9.0.0, and the release notes don't mention what could have caused them. Fixes: |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
mlx4_ethdev.c | ||
mlx4_flow.c | ||
mlx4_flow.h | ||
mlx4_glue.c | ||
mlx4_glue.h | ||
mlx4_intr.c | ||
mlx4_mp.c | ||
mlx4_mr.c | ||
mlx4_mr.h | ||
mlx4_prm.h | ||
mlx4_rxq.c | ||
mlx4_rxtx.c | ||
mlx4_rxtx.h | ||
mlx4_txq.c | ||
mlx4_utils.c | ||
mlx4_utils.h | ||
mlx4.c | ||
mlx4.h | ||
rte_pmd_mlx4_version.map |