pax: fix for compiling with gcc 4.6.0
(From OE-Core rev: 8ad3902c98bef4d6fef425f4808d29b8b4ebd707) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b6e4c1a9a9
commit
ac3dce4c75
|
@ -0,0 +1,25 @@
|
|||
Upstream-Status: Pending
|
||||
|
||||
This patch fixes this compiler error with gcc 4.6.0
|
||||
|
||||
Nitin A Kamble <nitin.a.kamble@intel.com> 2011/05/08
|
||||
|
||||
| fts.c: In function 'pax_fts_set':
|
||||
| fts.c:469:7: error: parameter 'sp' set but not used [-Werror=unused-but-set-parameter]
|
||||
| cc1: all warnings being treated as errors
|
||||
|
|
||||
| make[2]: *** [fts.o] Error 1
|
||||
|
||||
Index: pax-3.4/lib/fts.c
|
||||
===================================================================
|
||||
--- pax-3.4.orig/lib/fts.c
|
||||
+++ pax-3.4/lib/fts.c
|
||||
@@ -466,7 +466,7 @@ name: t = sp->fts_path + NAPPEND(p->fts
|
||||
/* ARGSUSED */
|
||||
int
|
||||
fts_set(sp, p, instr)
|
||||
- FTS *sp;
|
||||
+ FTS __attribute__((__unused__)) *sp;
|
||||
FTSENT *p;
|
||||
int instr;
|
||||
{
|
|
@ -10,9 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4b0b674dfdc56daa3832d4069b820ea0 \
|
|||
file://lib/vis.h;endline=40;md5=b283f759abd4a5ad7e014b80f51fc053"
|
||||
|
||||
SECTION = "base"
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "ftp://ftp.suse.com/pub/people/kukuk/pax/pax-${PV}.tar.bz2"
|
||||
SRC_URI = "ftp://ftp.suse.com/pub/people/kukuk/pax/pax-${PV}.tar.bz2 \
|
||||
file://fix_for_compile_with_gcc-4.6.0.patch"
|
||||
|
||||
SRC_URI[md5sum] = "fbd9023b590b45ac3ade95870702a0d6"
|
||||
SRC_URI[sha256sum] = "ac3c06048e02828077cf7757d3d142241429238893b91d529af29a2e8cc5623b"
|
||||
|
|
Loading…
Reference in New Issue