source: scripts/patches/tar-1.15.1-gcc4_fix_tests.patch@ f013de9

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f013de9 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[617118d]1Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>
2Date: 2005-04-25
3Initial Package Version: 1.15.1
4Origin: Ryan Oliver
5Description: Fix compilation issues with gcc4
6
7if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib -I../src -O2 -pipe -MT genfile.o -MD -MP -MF ".deps/genfile.Tpo" -c -o genfile.o genfile.c; \
8then mv -f ".deps/genfile.Tpo" ".deps/genfile.Po"; else rm -f ".deps/genfile.Tpo"; exit 1; fi
9genfile.c:63: error: static declaration of 'argp_program_version' follows non-static declaration
10../lib/argp.h:428: error: previous declaration of 'argp_program_version' was here
11genfile.c:64: error: static declaration of 'argp_program_bug_address' follows non-static declaration
12../lib/argp.h:444: error: previous declaration of 'argp_program_bug_address' was here
13
14--- tar-1.15.1/tests/genfile.c-orig 2005-04-25 15:23:47.000000000 +1000
15+++ tar-1.15.1/tests/genfile.c 2005-04-25 15:24:08.000000000 +1000
16@@ -60,8 +60,8 @@
17 /* Block buffer for sparse file */
18 char *buffer;
19
20-static const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
21-static const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
22+const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
23+const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
24 static char doc[] = N_("genfile generates data files for GNU paxutils test suite");
25
26 static struct argp_option options[] = {
Note: See TracBrowser for help on using the repository browser.