Skip to content

fix compiler warnings with clang and "-Wextra"

Thomas Haller netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rule: fix "const static" declarationsrc/rule.c+2 -20 replies
2/5utils: call abort() after BUG() macroinclude/utils.h+2 -10 replies
3/5src: silence "implicit-fallthrough" warningssrc/optimize.c src/segtree.c+3 -30 replies
4/5xt: avoid "-Wmissing-field-initializers" for "original_opts"src/xt.c+1 -10 replies
5/5datatype: check against negative "type" argument in datatype_lookup()src/datatype.c+1 -16 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.41.0