Skip to contentSkip to conversation

exthdr: remove unused variable uval8

PATCH Applied Alexander Alemayhu 2 participants 2 messages Feb 23, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exthdr: remove unused variable uval8

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;
          ^~~~~
---
 src/expr/exthdr.c | 1 -
 1 file changed, 1 deletion(-)
src/expr/exthdr.c +0 -1
index c44c1a75a5ea..9ed4ae1725ac 100644
@@ -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,
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw
Quoted 7 lines · Alexander Alemayhu

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;
          ^~~~~

applied, thanks.