This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH dllwrap.c: Build error with GCC 3.5: static mismatch


GCC gives an error about program_name in dllwrap.c conflicting with a
non-static version in bucomm.h.  The following patch corrects this by
not making the global variable static.

Aaron W. LaFramboise

2004-07-09  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>

	* binutils/dllwrap.c (program_name): Remove static.

Index: src/binutils/dllwrap.c
===================================================================
RCS file: /cvs/src/src/binutils/dllwrap.c,v
retrieving revision 1.13
diff -c -3 -p -r1.13 dllwrap.c
*** src/binutils/dllwrap.c	14 Sep 2003 12:20:16 -0000	1.13
--- src/binutils/dllwrap.c	9 Jul 2004 08:51:00 -0000
*************** static target_type which_target = UNKNOW
*** 101,107 ****
  static int dontdeltemps = 0;
  static int dry_run = 0;

! static char *program_name;

  static int verbose = 0;

--- 101,107 ----
  static int dontdeltemps = 0;
  static int dry_run = 0;

! char *program_name;

  static int verbose = 0;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]