changeset 5616:468bfd52146d

Avoid using non-constant initializers for struct pentry_state.
author Sergey Poznyakoff <gray@gnu.org.ua>
date Mon, 24 Jan 2005 10:14:36 +0000
parents 8cf397a43dd9
children 7d7b75586200
files lib/argp-help.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/argp-help.c
+++ b/lib/argp-help.c
@@ -1055,7 +1055,13 @@
   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--)