From eee1c92ee00a1b54fd2faa14ca32617e5f1c8402 Mon Sep 17 00:00:00 2001 From: John W. Linville Date: Feb 09 2016 19:59:20 +0000 Subject: Do not treat unused-const-variable warnings as errors A code generation script in crda builds a .c file that is #include'd by another .c file. There is a variable definition in the first .c file that is used in the second .c file, but the compiler doesn't seem to agree and generates an unused-const-variable warning. Since the default CFLAGS treats warnings as errors, this warning needs special handling or the build will fail... --- diff --git a/crda.spec b/crda.spec index 6c0469d..38d2f79 100644 --- a/crda.spec +++ b/crda.spec @@ -60,7 +60,8 @@ cd crda-%{crda_version} %patch2 -p2 -b .ldflags %build -export CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" +export CFLAGS="%{optflags} -Wno-error=unused-const-variable" +export LDFLAGS="%{?__global_ldflags}" # Use our own signing key to generate regulatory.bin cd wireless-regdb-%{regdb_version} @@ -131,6 +132,7 @@ rm -rf %{buildroot} %changelog * Tue Feb 09 2016 John W. Linville - 3.18_2016.02.08-1 - Update wireless-regdb to version 2016.02.08 +- Do not treat unused-const-variable warnings as errors * Wed Feb 03 2016 Fedora Release Engineering - 3.18_2015.10.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild