summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch b/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch
new file mode 100644
index 0000000000..0e57dbc7fc
--- /dev/null
+++ b/meta/recipes-devtools/dpkg/dpkg/no-vla-warning.patch
@@ -0,0 +1,32 @@
1From e94474d805377d67c8b09664a602f20969e12b8a Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 23 Jan 2014 04:17:23 -0500
4Subject: [PATCH] dpkg-compiler.m4: remove -Wvla
5
6Remove the -Wvla flag from the set of compiler warning flags, since gcc
7on old host systems such as CentOS 5.8 doesn't support it, and it
8causes a build error for dpkg-native.
9
10Upstream-Status: Pending
11
12Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
13Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
14---
15 m4/dpkg-compiler.m4 | 1 -
16 1 file changed, 1 deletion(-)
17
18diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
19index f1c760b..500b5ad 100644
20--- a/m4/dpkg-compiler.m4
21+++ b/m4/dpkg-compiler.m4
22@@ -72,7 +72,6 @@ if test "x$enable_compiler_warnings" = "xyes"; then
23 DPKG_WARNING_ALL([-Wformat-security])
24 DPKG_WARNING_ALL([-Wpointer-arith])
25 DPKG_WARNING_ALL([-Wlogical-op])
26- DPKG_WARNING_ALL([-Wvla])
27 DPKG_WARNING_ALL([-Winit-self])
28 DPKG_WARNING_ALL([-Wwrite-strings])
29 DPKG_WARNING_ALL([-Wcast-align])
30--
311.7.10.4
32