source: patches/tar-1.15.1-gcc4_fix_tests-1.patch@ 0c3999a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0c3999a 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
  • tar-1.15.1/tests/genfile.

    Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
    Date: 2005-07-15
    Initial Package Version: 1.15.1
    Upstream Status: From Upstream
    Origin: Ryan Oliver
    Description: Fixes a compilation problem with gcc-4.0.x that results in:
    
    genfile.c:63: error: static declaration of 'argp_program_version' follows non-static declaration
    ../lib/argp.h:428: error: previous declaration of 'argp_program_version' was here
    genfile.c:64: error: static declaration of 'argp_program_bug_address' follows non-static declaration
    ../lib/argp.h:444: error: previous declaration of 'argp_program_bug_address' was here
    
    old new  
    6060/* Block buffer for sparse file */
    6161char *buffer;
    6262
    63 static const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
    64 static const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
     63const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
     64const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
    6565static char doc[] = N_("genfile generates data files for GNU paxutils test suite");
    6666
    6767static struct argp_option options[] = {
Note: See TracBrowser for help on using the repository browser.