netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libnftnl] exthdr: remove unused variable uval8
@ 2017-02-23 22:33 Alexander Alemayhu
  2017-02-23 22:35 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Alemayhu @ 2017-02-23 22:33 UTC (permalink / raw)
  To: netfilter-devel; +Cc: 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;
          ^~~~~

Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
---
 src/expr/exthdr.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/expr/exthdr.c b/src/expr/exthdr.c
index c44c1a75a5ea..9ed4ae1725ac 100644
--- a/src/expr/exthdr.c
+++ b/src/expr/exthdr.c
@@ -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,
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH libnftnl] exthdr: remove unused variable uval8
  2017-02-23 22:33 [PATCH libnftnl] exthdr: remove unused variable uval8 Alexander Alemayhu
@ 2017-02-23 22:35 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2017-02-23 22:35 UTC (permalink / raw)
  To: Alexander Alemayhu; +Cc: netfilter-devel

Alexander Alemayhu <alexander@alemayhu.com> wrote:
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 22:33 [PATCH libnftnl] exthdr: remove unused variable uval8 Alexander Alemayhu
2017-02-23 22:35 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).