From: Sergey Poznyakoff Date: Mon, 24 Jan 2005 10:14:36 +0000 (+0000) Subject: Avoid using non-constant initializers for struct pentry_state. X-Git-Tag: cvs-readonly~3570 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=cbb86267fda18ba3e409e16cf9c460cbbed1846c;p=gnulib.git Avoid using non-constant initializers for struct pentry_state. --- diff --git a/lib/argp-help.c b/lib/argp-help.c index 603576496..c506b57b0 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1055,7 +1055,13 @@ hol_entry_help (struct hol_entry *entry, const struct argp_state *state, 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--)