Branch: Tag:

2001-07-01

2001-07-01 21:34:51 by Martin Stjernholm <mast@lysator.liu.se>

Avoid the missing initializer warnings if the compiler allows us to
initialize unions.

Rev: src/acconfig.h:1.88
Rev: src/array.c:1.115
Rev: src/bignum.c:1.22
Rev: src/configure.in:1.530
Rev: src/encode.c:1.102
Rev: src/error.c:1.73
Rev: src/mapping.c:1.128
Rev: src/svalue.c:1.109

22:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.72 2001/06/18 15:44:40 grubba Exp $"); + RCSID("$Id: error.c,v 1.73 2001/07/01 21:34:50 mast Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
132:    f_aggregate(2);   }    - PMOD_EXPORT struct svalue throw_value = { PIKE_T_INT }; + PMOD_EXPORT struct svalue throw_value = { +  PIKE_T_INT, 0, + #ifdef HAVE_UNION_INIT +  {0}, /* Only to avoid warnings. */ + #endif + };   int throw_severity;   static const char *in_error;