source: patches/tar-1.15.1-gcc4_fix_tests-1.patch@ 714b206

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 714b206 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[69cde8d]1Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
2Date: 2005-07-15
3Initial Package Version: 1.15.1
4Upstream Status: From Upstream
5Origin: Ryan Oliver
6Description: Fixes a compilation problem with gcc-4.0.x that results in:
7
8genfile.c:63: error: static declaration of 'argp_program_version' follows non-static declaration
9../lib/argp.h:428: error: previous declaration of 'argp_program_version' was here
10genfile.c:64: error: static declaration of 'argp_program_bug_address' follows non-static declaration
11../lib/argp.h:444: error: previous declaration of 'argp_program_bug_address' was here
12
13--- tar-1.15.1/tests/genfile.c-orig 2005-04-25 15:23:47.000000000 +1000
14+++ tar-1.15.1/tests/genfile.c 2005-04-25 15:24:08.000000000 +1000
15@@ -60,8 +60,8 @@
16 /* Block buffer for sparse file */
17 char *buffer;
18
19-static const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
20-static const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
21+const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
22+const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
23 static char doc[] = N_("genfile generates data files for GNU paxutils test suite");
24
25 static struct argp_option options[] = {
Note: See TracBrowser for help on using the repository browser.