Skip to contentSkip to conversation

Fix compilation warning if NF_CONNTRACK_MARK is not set

PATCH Applied Kristian Evensen 2 participants 2 messages Jan 10, 2014 – Jan 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation warning if NF_CONNTRACK_MARK is not set

From: Kristian Evensen <[email protected]>

net/netfilter/nft_ct.c: In function 'nft_ct_set_eval':
net/netfilter/nft_ct.c:136:6: warning: unused variable 'value' [-Wunused-variable]

---
 net/netfilter/nft_ct.c | 2 ++
 1 file changed, 2 insertions(+)
net/netfilter/nft_ct.c +2 -0
index c7c1285..917052e 100644
@@ -133,7 +133,9 @@ static void nft_ct_set_eval(const struct nft_expr *expr,
 {
 	const struct nft_ct *priv = nft_expr_priv(expr);
 	struct sk_buff *skb = pkt->skb;
+#ifdef CONFIG_NF_CONNTRACK_MARK
 	u32 value = data[priv->sreg].data[0];
+#endif
 	enum ip_conntrack_info ctinfo;
 	struct nf_conn *ct;
 
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Kristian Evensen

From: Kristian Evensen <[email protected]>

net/netfilter/nft_ct.c: In function 'nft_ct_set_eval':
net/netfilter/nft_ct.c:136:6: warning: unused variable 'value' [-Wunused-variable]

Applied, thanks.