mbox series

[v3,iproute2-next,00/11] fix clang warnings

Message ID 20220117175019.13993-1-stephen@networkplumber.org (mailing list archive)
Headers show
Series fix clang warnings | expand

Message

Stephen Hemminger Jan. 17, 2022, 5:50 p.m. UTC
This patch set makes iproute2-next main branch compile without warnings
on Clang 11 (and probably later versions).

v3
  - fix indentation in flower
  - simplify print_masked_type

Stephen Hemminger (11):
  tc: add format attribute to tc_print_rate
  utils: add format attribute
  netem: fix clang warnings
  flower: fix clang warnings
  tc_util: fix clang warning in print_masked_type
  ipl2tp: fix clang warning
  can: fix clang warning
  tipc: fix clang warning about empty format string
  tunnel: fix clang warning
  libbpf: fix clang warning about format non-literal
  json_print: suppress clang format warning

 include/utils.h  |  4 +++-
 ip/ipl2tp.c      |  5 +++--
 ip/iplink_can.c  |  5 +++--
 ip/tunnel.c      |  9 +--------
 lib/bpf_libbpf.c |  6 ++++--
 lib/json_print.c |  8 ++++++++
 tc/f_flower.c    | 49 ++++++++++++++++++------------------------------
 tc/q_netem.c     | 33 +++++++++++++++++++-------------
 tc/tc_util.c     | 35 ++++++++++------------------------
 tipc/link.c      |  2 +-
 10 files changed, 71 insertions(+), 85 deletions(-)