All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crda: Fix error: `keys’ defined but not used
@ 2017-12-04 20:52 Jelle van der Waa
  2018-01-05 19:13 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Jelle van der Waa @ 2017-12-04 20:52 UTC (permalink / raw)
  To: Luis R . Rodriguez; +Cc: linux-wireless, Jelle van der Waa

Fix error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
by informing GCC keys is unused.

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
---
 utils/key2pub.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/key2pub.py b/utils/key2pub.py
index 3e84cd2..9bb04cd 100755
--- a/utils/key2pub.py
+++ b/utils/key2pub.py
@@ -115,7 +115,7 @@ struct key_params {
 	.n = _n, .len_n = sizeof(_n),	\
 }
 
-static const struct key_params keys[] = {
+static const struct key_params __attribute__ ((unused)) keys[] = {
 ''')
     for n in xrange(n + 1):
         output.write('	KEYS(e_%d, n_%d),\n' % (n, n))
-- 
2.15.1

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

end of thread, other threads:[~2018-01-05 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 20:52 [PATCH] crda: Fix error: `keys’ defined but not used Jelle van der Waa
2018-01-05 19:13 ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.