]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
exthdr: remove unused variable uval8
authorAlexander Alemayhu <alexander@alemayhu.com>
Thu, 23 Feb 2017 22:33:06 +0000 (23:33 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 23 Feb 2017 22:35:55 +0000 (23:35 +0100)
Was added but not used in d7b451fe1a45 (src: add TCP option matching
requirements, 2017-02-07). Fixes the following warning:

expr/exthdr.c: In function ‘nftnl_expr_exthdr_json_parse’:
expr/exthdr.c:244:10: warning: unused variable ‘uval8’ [-Wunused-variable]
  uint8_t uval8;
          ^~~~~

Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/expr/exthdr.c

index c44c1a75a5ea95096c0369b87e006746237de463..9ed4ae1725ac1c06945e75733b09629f6f495467 100644 (file)
@@ -241,7 +241,6 @@ nftnl_expr_exthdr_json_parse(struct nftnl_expr *e, json_t *root,
 #ifdef JSON_PARSING
        const char *exthdr_type;
        uint32_t uval32;
-       uint8_t uval8;
        int type;
 
        if (nftnl_jansson_parse_reg(root, "dreg", NFTNL_TYPE_U32, &uval32,