0003-drop-werror.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From f38253e066dee96b148be1b79a6b4a696ee0ae0b Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
  3. Date: Sun, 1 May 2016 10:05:48 +0200
  4. Subject: [PATCH] drop werror
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Building crda with GCC 6 fails because of all compiler warnings are treated as
  9. errors. Disable the compiler option '-Werror':
  10. keys-gcrypt.c:94:32: error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
  11. static const struct key_params keys[] = {
  12. ^~~~
  13. cc1: all warnings being treated as errors
  14. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  15. ---
  16. Makefile | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. diff --git a/Makefile b/Makefile
  19. index 74f1172..e9b417f 100644
  20. --- a/Makefile
  21. +++ b/Makefile
  22. @@ -26,7 +26,7 @@ PUBKEY_DIR?=pubkeys
  23. RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys
  24. CFLAGS += -O2 -fpic
  25. -CFLAGS += -std=gnu99 -Wall -Werror -pedantic
  26. +CFLAGS += -std=gnu99 -Wall -pedantic
  27. CFLAGS += -Wall -g
  28. LDLIBREG += -lreg
  29. LDLIBS += $(LDLIBREG)
  30. --
  31. 2.8.2