diff options
author | Thomas Haller <thaller@redhat.com> | 2023-08-29 20:54:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-08-30 09:47:12 +0200 |
commit | b3c1d9faef50191a5a445cbb16256b147d30c9d8 (patch) | |
tree | 3867f641adde8e3e9c6c60f4d020466a3400cf0b /src | |
parent | 40102a902abdeeb23db6f13ce083016fd5dcb4ff (diff) |
xt: avoid "-Wmissing-field-initializers" for "original_opts"
Avoid this warning with clang:
CC src/xt.lo
src/xt.c:353:9: error: missing field 'has_arg' initializer [-Werror,-Wmissing-field-initializers]
{ NULL },
^
The warning seems not very useful, because it's well understood that
specifying only some initializers leaves the remaining fields
initialized with the default. However, as this warning is only hit once
in the code base, it doesn't seem that we violate this style frequently.
Hence, fix it instead of disabling the warning.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/xt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -350,7 +350,7 @@ err: } static struct option original_opts[] = { - { NULL }, + { }, }; static struct xtables_globals xt_nft_globals = { |