ola: fix compilation with older clang 14265/head
authorRosen Penev <rosenp@gmail.com>
Fri, 18 Dec 2020 05:05:02 +0000 (21:05 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 18 Dec 2020 06:02:44 +0000 (22:02 -0800)
Werror is normally passed with pkgconfig headers. Remove it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/ola/Makefile
net/ola/patches/010-no-werror.patch [new file with mode: 0644]

index 7124415f759ab48cb0b655ccfa0a3a4d63211ffa..a057f1f5e2736edb38f769ef8c3465779db9abea 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ola
 PKG_VERSION:=0.10.8
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/OpenLightingProject/ola/tar.gz/$(PKG_VERSION)?
diff --git a/net/ola/patches/010-no-werror.patch b/net/ola/patches/010-no-werror.patch
new file mode 100644 (file)
index 0000000..44f5bdb
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -61,7 +61,7 @@ COMMON_TESTING_PROTOBUF_FLAGS = $(COMMON
+ # The generated protobuf files don't compile with -Werror on win32 so we
+ # disable fatal warnings on WIN32.
+-if ! USING_WIN32
++if USING_WIN32
+ if FATAL_WARNINGS
+   COMMON_CXXFLAGS += -Werror
+   COMMON_PROTOBUF_CXXFLAGS += -Werror -Wno-error=unused-parameter \