mbox series

[nft,0/5] fix compiler warnings with clang and "-Wextra"

Message ID 20230829185509.374614-1-thaller@redhat.com
Headers show
Series fix compiler warnings with clang and "-Wextra" | expand

Message

Thomas Haller Aug. 29, 2023, 6:54 p.m. UTC
More fixes (workarounds) for compiler warnings. Mostly by enabling
"-Wextra" with gcc.

Thomas Haller (5):
  rule: fix "const static" declaration
  utils: call abort() after BUG() macro
  src: silence "implicit-fallthrough" warnings
  xt: avoid "-Wmissing-field-initializers" for "original_opts"
  datatype: check against negative "type" argument in datatype_lookup()

 include/utils.h | 3 ++-
 src/datatype.c  | 2 +-
 src/optimize.c  | 1 +
 src/rule.c      | 4 ++--
 src/segtree.c   | 5 ++---
 src/xt.c        | 2 +-
 6 files changed, 9 insertions(+), 8 deletions(-)