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

8:   #include "svalue.h"   #include "pike_error.h"    - struct svalue auto_bignum_program = { T_INT }; + struct svalue auto_bignum_program = { +  T_INT, 0, + #ifdef HAVE_UNION_INIT +  {0}, /* Only to avoid warnings. */ + #endif + };      PMOD_EXPORT int gmp_library_loaded=0;   int gmp_library_resolving=0;