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

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.101 2001/07/01 16:59:45 grubba Exp $"); + RCSID("$Id: encode.c,v 1.102 2001/07/01 21:34:50 mast Exp $");      /* #define ENCODE_DEBUG */   
525:   #endif      { -  static struct svalue dested = { T_INT, NUMBER_DESTRUCTED }; +  static struct svalue dested = { +  T_INT, NUMBER_DESTRUCTED, + #ifdef HAVE_UNION_INIT +  {0}, /* Only to avoid warnings. */ + #endif +  };    INT32 i;    struct svalue *tmp;