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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.41.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux