[Buildroot] [PATCH] crda: fix build with GCC 6

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun May 1 20:35:52 UTC 2016


Hello,

On Sun,  1 May 2016 11:28:03 +0200, Jörg Krause wrote:
> Building crda with GCC 6 fails because of all compiler warnings are treated as
> errors. Disable the compiler option '-Werror':
> 
> keys-gcrypt.c:94:32: error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
>  static const struct key_params keys[] = {
>                                 ^~~~
> cc1: all warnings being treated as errors
> 
> Add a patch to drop '-Werror' from CFLAGS.
> 
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
>  package/crda/0003-drop-werror.patch | 37 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 37 insertions(+)
>  create mode 100644 package/crda/0003-drop-werror.patch

Applied to master, but please report the bug upstream. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list