GCC warns about missing braces in initializers, due to these definitions in src/h/ecl-inl.h:
#define ecl_def_string_array(name,static,const) \ static const union { \ struct ecl_base_string elt; \ cl_fixnum padding[(sizeof(struct ecl_base_string)+3)/4*4]; \ } name[] #define ecl_def_string_array_elt(chars) { \ (int8_t)t_base_string, 0, ecl_aet_bc, 0, \ ECL_NIL, (cl_index)(sizeof(chars))-1, \ (cl_index)(sizeof(chars))-1, \ (ecl_base_char*)(chars) } When ecl_def_string_array is used, the initializer needs to be for an array of unions. So we need one set of curly braces for the array, then for each element we need a set of curly braces for the union, and a second set for the structure that is the first element of the union. This definition is missing the second set. The attached patch fixes the problem. Regards, -- Jerry James http://www.jamezone.org/
ecl-braces.patch
Description: Binary data
------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list