In set_vf_traffic() the ixgbe specific code ends with a return, so the generic "not supported" message after the #endif can only be reached when ixgbe is not built. Clang reports it as unreachable in the normal build.
Put the generic message in an #else block so that exactly one path is compiled in either configuration, and drop the now redundant return. Signed-off-by: Stephen Hemminger <[email protected]> --- app/test-pmd/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 8986d6998f..5f255d2630 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -7301,12 +7301,12 @@ set_vf_traffic(portid_t port_id, uint8_t is_rx, uint16_t vf, uint8_t on) fprintf(stderr, "rte_pmd_ixgbe_set_vf_%s for port_id=%d failed diag=%d\n", is_rx ? "rx" : "tx", port_id, diag); - return; -#endif +#else fprintf(stderr, "VF %s setting not supported for port %d\n", is_rx ? "Rx" : "Tx", port_id); RTE_SET_USED(vf); RTE_SET_USED(on); +#endif } int -- 2.53.0

