summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-04-09 08:23:53 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-04-09 08:25:34 +0200
commit8778b3c1ba920ad6c7512d551748d519a41c2b7d (patch)
treebaefac6f5b52f7fbeac6d5e34b146afa2c73068a /patches
parent3bca35519fc4ebf8fabc6a167724d4aa378bb4e0 (diff)
downloadptxdist-8778b3c1ba920ad6c7512d551748d519a41c2b7d.tar.gz
ptxdist-8778b3c1ba920ad6c7512d551748d519a41c2b7d.tar.xz
uvc-gadget: fix building with some versions of icecc
This fixes building with any icecc versions that don't support remote preprocessing. With those versions the 'fallthrough' comments are lost which results in implicit-fallthrough warnings. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/uvc-gadget-2019-02-13-g58f5ddeb/0001-don-t-build-with-Werror.patch27
-rw-r--r--patches/uvc-gadget-2019-02-13-g58f5ddeb/series4
2 files changed, 31 insertions, 0 deletions
diff --git a/patches/uvc-gadget-2019-02-13-g58f5ddeb/0001-don-t-build-with-Werror.patch b/patches/uvc-gadget-2019-02-13-g58f5ddeb/0001-don-t-build-with-Werror.patch
new file mode 100644
index 000000000..f3aa2032b
--- /dev/null
+++ b/patches/uvc-gadget-2019-02-13-g58f5ddeb/0001-don-t-build-with-Werror.patch
@@ -0,0 +1,27 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Tue, 9 Apr 2019 08:22:13 +0200
+Subject: [PATCH] don't build with -Werror
+
+New warning may show up with different compiler versions.
+Also, building with icecc may result in errors like this:
+
+.../lib/v4l2.c:180:23: error: this statement may fall through [-Werror=implicit-fallthrough=]
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2cb8c20d9f23..4b0e1106f299 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
+ project(uvc-gadget)
+ set(CMAKE_BUILD_TYPE Release)
+
+-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -Werror")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter")
+
+ include_directories(${CMAKE_BINARY_DIR}/generated)
+
diff --git a/patches/uvc-gadget-2019-02-13-g58f5ddeb/series b/patches/uvc-gadget-2019-02-13-g58f5ddeb/series
new file mode 100644
index 000000000..7206ba5a9
--- /dev/null
+++ b/patches/uvc-gadget-2019-02-13-g58f5ddeb/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-don-t-build-with-Werror.patch
+# 88960d3773bc430202b6426ccb9143a4 - git-ptx-patches magic