summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb/no-werror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/no-werror.patch')
-rw-r--r--meta/recipes-devtools/gdb/gdb/no-werror.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/no-werror.patch b/meta/recipes-devtools/gdb/gdb/no-werror.patch
new file mode 100644
index 0000000000..0926073721
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/no-werror.patch
@@ -0,0 +1,78 @@
1---
2 bfd/warning.m4 | 2 +-
3 configure.ac | 2 +-
4 gdb/Makefile.in | 4 ++--
5 gdb/configure.ac | 8 ++------
6 4 files changed, 6 insertions(+), 10 deletions(-)
7
8Index: gdb-7.1/bfd/warning.m4
9===================================================================
10--- gdb-7.1.orig/bfd/warning.m4
11+++ gdb-7.1/bfd/warning.m4
12@@ -23,7 +23,7 @@ esac
13
14 # Enable -Werror by default when using gcc
15 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16- ERROR_ON_WARNING=yes
17+ ERROR_ON_WARNING=no
18 fi
19
20 NO_WERROR=
21Index: gdb-7.1/configure.ac
22===================================================================
23--- gdb-7.1.orig/configure.ac
24+++ gdb-7.1/configure.ac
25@@ -3371,7 +3371,7 @@ AC_SUBST(stage1_checking)
26 AC_ARG_ENABLE(werror,
27 [ --enable-werror enable -Werror in bootstrap stage2 and later], [],
28 [if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
29- enable_werror=yes
30+ enable_werror=no
31 else
32 enable_werror=no
33 fi])
34Index: gdb-7.1/gdb/Makefile.in
35===================================================================
36--- gdb-7.1.orig/gdb/Makefile.in
37+++ gdb-7.1/gdb/Makefile.in
38@@ -151,9 +151,9 @@ READLINE_CFLAGS = @READLINE_CFLAGS@
39 LIBEXPAT = @LIBEXPAT@
40
41 WARN_CFLAGS = @WARN_CFLAGS@
42-WERROR_CFLAGS = @WERROR_CFLAGS@
43+WERROR_CFLAGS =
44 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
45-GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
46+GDB_WERROR_CFLAGS =
47
48 GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " | sed "s/ -Wformat-nonliteral / /g"`
49
50Index: gdb-7.1/gdb/configure.ac
51===================================================================
52--- gdb-7.1.orig/gdb/configure.ac
53+++ gdb-7.1/gdb/configure.ac
54@@ -1525,15 +1525,12 @@ GDB_AC_WITH_DIR(SYSTEM_GDBINIT, system-g
55 AC_ARG_ENABLE(werror,
56 AS_HELP_STRING([--enable-werror], [treat compile warnings as errors]),
57 [case "${enableval}" in
58- yes | y) ERROR_ON_WARNING="yes" ;;
59+ yes | y) ERROR_ON_WARNING="no" ;;
60 no | n) ERROR_ON_WARNING="no" ;;
61 *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
62 esac])
63
64 WERROR_CFLAGS=""
65-if test "${ERROR_ON_WARNING}" = yes ; then
66- WERROR_CFLAGS="-Werror"
67-fi
68
69 # The entries after -Wno-pointer-sign are disabled warnings which may
70 # be enabled in the future, which can not currently be used to build
71@@ -1587,7 +1584,6 @@ then
72 # compiled with it enabled.
73 for w in ${build_warnings}; do
74 case $w in
75- -Werr*) WERROR_CFLAGS=-Werror ;;
76 *) # Check that GCC accepts it
77 saved_CFLAGS="$CFLAGS"
78 CFLAGS="$CFLAGS $w"