Skip to contentSkip to conversation

crda: Fix error: `keys’ defined but not used

PATCH In review Jelle van der Waa 2 participants 2 messages Dec 4, 2017 – Jan 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crda: Fix error: `keys’ defined but not used

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

---
 utils/key2pub.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/key2pub.py +1 -1
index 3e84cd2..9bb04cd 100755
@@ -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))
Signature · 1 line
2.15.1
#1 lore raw
Quoted 4 lines · Jelle van der Waa

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

Thanks, applied and pushed! Although this just fixes a compilation warning, but since we do use -Werror and thus force any error to fail compilation I've pushed out a new release with this fix merged as v4.14.

If a new tarball is not kicked off soon [0] automatically I'll poke and see to it. Note that as of kernel v4.15 (as of commit 007f6c5e6eb45 ("cfg80211:
support loading regulatory database as firmware file" we have the ability now for the kernel to do this file lookup for us first, and only if that fails will CRDA kick in.

[0] https://www.kernel.org/pub/software/network/crda/

Luis