bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [patch] Support for MIPSpro


From: Roland Illig
Subject: [Bug-tar] [patch] Support for MIPSpro
Date: Sun, 12 Feb 2006 20:37:01 +0100
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.7.12) Gecko/20051220

Hello,

the MIPSpro compiler does not like non-constant initializers for automatic struct variables.

Greetings,

Roland
$NetBSD: patch-ah,v 1.3 2006/01/28 02:03:58 rillig Exp $

MIPSpro does not like non-constant initializers.

--- lib/argp-help.c.orig        2004-10-04 11:36:16.000000000 +0200
+++ lib/argp-help.c     2006-01-28 02:58:23.000000000 +0100
@@ -1055,7 +1055,13 @@ hol_entry_help (struct hol_entry *entry,
   int old_wm = __argp_fmtstream_wmargin (stream);
   /* PEST is a state block holding some of our variables that we'd like to
      share with helper functions.  */
-  struct pentry_state pest = { entry, stream, hhstate, 1, state };
+  struct pentry_state pest;
+
+  pest.entry = entry;
+  pest.stream = stream;
+  pest.hhstate = hhstate;
+  pest.first = 1;
+  pest.state = state;
 
   if (! odoc (real))
     for (opt = real, num = entry->num; num > 0; opt++, num--)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]