summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch')
-rw-r--r--recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch23
1 files changed, 10 insertions, 13 deletions
diff --git a/recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch b/recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch
index a4a4029..f7de9d1 100644
--- a/recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch
+++ b/recipes-multimedia/libyami/libyami-utils/0001-Fix-build-with-clang.patch
@@ -1,4 +1,4 @@
1From b7e66182788cd925570bb4c310e21fbcd3185040 Mon Sep 17 00:00:00 2001 1From f2e6d2ecfea635ab952649156e31ca893d4b1a47 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 12 Aug 2017 08:49:20 -0700 3Date: Sat, 12 Aug 2017 08:49:20 -0700
4Subject: [PATCH] Fix build with clang 4Subject: [PATCH] Fix build with clang
@@ -11,9 +11,9 @@ and
11psnr.cpp:225:17: error: bool literal returned from 'main' [-Werror,-Wmain] 11psnr.cpp:225:17: error: bool literal returned from 'main' [-Werror,-Wmain]
12 12
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15Upstream-Status: Pending 14Upstream-Status: Pending
16 15
16---
17 tests/decodehelp.cpp | 2 +- 17 tests/decodehelp.cpp | 2 +-
18 tests/encodehelp.h | 2 +- 18 tests/encodehelp.h | 2 +-
19 tests/vpp.cpp | 2 +- 19 tests/vpp.cpp | 2 +-
@@ -22,12 +22,12 @@ Upstream-Status: Pending
22 5 files changed, 6 insertions(+), 6 deletions(-) 22 5 files changed, 6 insertions(+), 6 deletions(-)
23 23
24diff --git a/tests/decodehelp.cpp b/tests/decodehelp.cpp 24diff --git a/tests/decodehelp.cpp b/tests/decodehelp.cpp
25index a69eab6..2d96598 100644 25index b27b977..62cca63 100644
26--- a/tests/decodehelp.cpp 26--- a/tests/decodehelp.cpp
27+++ b/tests/decodehelp.cpp 27+++ b/tests/decodehelp.cpp
28@@ -70,7 +70,7 @@ bool processCmdLine(int argc, char** argv, DecodeParameter* parameters) 28@@ -81,7 +81,7 @@ bool processCmdLine(int argc, char** argv, DecodeParameter* parameters)
29 {"capi", no_argument, NULL, 0}, 29 { NULL, no_argument, NULL, 0 }
30 {NULL, no_argument, NULL, 0}}; 30 };
31 31
32- char opt; 32- char opt;
33+ int opt; 33+ int opt;
@@ -35,10 +35,10 @@ index a69eab6..2d96598 100644
35 switch (opt) { 35 switch (opt) {
36 case 'h': 36 case 'h':
37diff --git a/tests/encodehelp.h b/tests/encodehelp.h 37diff --git a/tests/encodehelp.h b/tests/encodehelp.h
38index 57ccd77..76df801 100644 38index 63580a4..651ec08 100644
39--- a/tests/encodehelp.h 39--- a/tests/encodehelp.h
40+++ b/tests/encodehelp.h 40+++ b/tests/encodehelp.h
41@@ -107,7 +107,7 @@ static VideoRateControl string_to_rc_mode(char *str) 41@@ -109,7 +109,7 @@ static VideoRateControl string_to_rc_mode(char *str)
42 42
43 static bool process_cmdline(int argc, char *argv[]) 43 static bool process_cmdline(int argc, char *argv[])
44 { 44 {
@@ -61,10 +61,10 @@ index 5a60c0a..52da43b 100644
61 { "help", no_argument, NULL, 'h' }, 61 { "help", no_argument, NULL, 'h' },
62 { "sharpening", required_argument, NULL, 's' }, 62 { "sharpening", required_argument, NULL, 's' },
63diff --git a/tests/yamitranscode.cpp b/tests/yamitranscode.cpp 63diff --git a/tests/yamitranscode.cpp b/tests/yamitranscode.cpp
64index 4cb72aa..2fc6725 100755 64index 6207209..00164ce 100755
65--- a/tests/yamitranscode.cpp 65--- a/tests/yamitranscode.cpp
66+++ b/tests/yamitranscode.cpp 66+++ b/tests/yamitranscode.cpp
67@@ -95,7 +95,7 @@ static VideoRateControl string_to_rc_mode(char *str) 67@@ -100,7 +100,7 @@ static VideoRateControl string_to_rc_mode(char *str)
68 68
69 static bool processCmdLine(int argc, char *argv[], TranscodeParams& para) 69 static bool processCmdLine(int argc, char *argv[], TranscodeParams& para)
70 { 70 {
@@ -94,6 +94,3 @@ index 5cc24c9..68bd668 100644
94 case 'i': 94 case 'i':
95 filename1 = optarg; 95 filename1 = optarg;
96 break; 96 break;
97--
982.14.1
99