[VCDImager Bugs/Devel] problem in build of vcdimager

jonathan jefferies <[email protected]> Fri, 20 Feb 2004 22:55:06 -0800
Newsgroups gmane.comp.gnu.vcdimager.bugs
Message-ID <[email protected]>
Downloaded the latest vcdimager sources and building
on RedHat 9.0 using gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
and got the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -Wunused  -Wall 
-Wmissing-prototypes -Wunused -Wpointer-arith -Wwrite-strings -c vcd.c
In file included from vcd.c:39:
vcd_files_private.h:364: flexible array member in otherwise empty struct
vcd_files_private.h:446: flexible array member in otherwise empty struct
vcd_files_private.h:467: flexible array member in otherwise empty struct

which I traced in vcd_files_private.h to the statement
    362 typedef struct {
    363   /* TracksSVD tracks_svd; */
    364   SVDTrackContent contents[EMPTY_ARRAY_SIZE] GNUC_PACKED; /* 
indicates track */

which apparently is a complaint about EMPTY_ARRAY_SIZE being null
when EMPTY_ARRAY_SIZE is defined in config.h as

/* what to put between the brackets for empty arrays */
#define EMPTY_ARRAY_SIZE 1

the reported error goes away but I am concerned about the possible 
implications.
Could you comment?

J. Jefferies