Branch: Tag:

2001-07-01

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

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

Rev: src/modules/Image/colors.c:1.50

1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.49 2001/04/14 09:44:22 hubbe Exp $ + **! $Id: colors.c,v 1.50 2001/07/01 21:53:37 mast Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.49 2001/04/14 09:44:22 hubbe Exp $"); + RCSID("$Id: colors.c,v 1.50 2001/07/01 21:53:37 mast Exp $");      #include "image_machine.h"   
346:   static void try_find_name(struct color_struct *this)   {    rgb_group d; -  static struct nct_dither dith = { NCTD_NONE,NULL,NULL,NULL,NULL,-1 }; +  static struct nct_dither dith = { +  NCTD_NONE,NULL,NULL,NULL,NULL,-1, + #ifdef HAVE_UNION_INIT +  {{NULL,NULL,0.0,0.0,0.0,0.0,0,0}}, /* Only to avoid warnings. */ + #endif +  };       if (!colors)    make_colors();