diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-12 21:38:42 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-02-14 11:01:00 +0100 |
commit | 386fc02ab5f99d65bc31f128426e86852bf89886 (patch) | |
tree | ca3e60282c9c62472fde828f833a028824aa13db | |
parent | df35de095c6c59dbc22f51d4e9b95540fa6b8bb4 (diff) | |
download | ptxdist-386fc02ab5f99d65bc31f128426e86852bf89886.tar.gz ptxdist-386fc02ab5f99d65bc31f128426e86852bf89886.tar.xz |
mtd-utils: add patch to fix compiling with gcc 4.5
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/mtd-utils-1.3.1/0003-don-t-build-ubi-utils-old-utils-with-Werror.patch | 31 | ||||
-rw-r--r-- | patches/mtd-utils-1.3.1/series | 3 |
2 files changed, 33 insertions, 1 deletions
diff --git a/patches/mtd-utils-1.3.1/0003-don-t-build-ubi-utils-old-utils-with-Werror.patch b/patches/mtd-utils-1.3.1/0003-don-t-build-ubi-utils-old-utils-with-Werror.patch new file mode 100644 index 000000000..0e9dbc879 --- /dev/null +++ b/patches/mtd-utils-1.3.1/0003-don-t-build-ubi-utils-old-utils-with-Werror.patch @@ -0,0 +1,31 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Sat, 12 Feb 2011 21:34:12 +0100 +Subject: [PATCH] don't build ubi-utils/old-utils with -Werror + +gcc 4.5 generates a warning: + +cc1: warnings being treated as errors +./src/libubigen.c: In function 'ubigen_write_leb': +./src/libubigen.c:204:19: error: operation on 'u->v->copy_flag' may be undefined + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + ubi-utils/old-utils/Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/ubi-utils/old-utils/Makefile b/ubi-utils/old-utils/Makefile +index acdb31a..6df7c06 100644 +--- a/ubi-utils/old-utils/Makefile ++++ b/ubi-utils/old-utils/Makefile +@@ -4,7 +4,7 @@ + + KERNELHDR := ../../include + +-CFLAGS ?= -O2 -g -Werror ++CFLAGS ?= -O2 -g + CPPFLAGS := -I./inc -I./src -I$(KERNELHDR) \ + -std=gnu99 -DPACKAGE_VERSION=\"1.0\" $(CPPFLAGS) + +-- +1.7.2.3 + diff --git a/patches/mtd-utils-1.3.1/series b/patches/mtd-utils-1.3.1/series index 0a25eaa20..a31c45cb0 100644 --- a/patches/mtd-utils-1.3.1/series +++ b/patches/mtd-utils-1.3.1/series @@ -1,4 +1,5 @@ # generated by git-ptx-patches 0001-make-liblzo-optional.patch 0002-make-mkubifs-optional.patch -# de3de5f0066fdb617068740421812da6 - git-ptx-patches magic +0003-don-t-build-ubi-utils-old-utils-with-Werror.patch +# 53874729a65c24c7b71ff21ac3a0c71c - git-ptx-patches magic |