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