tags (minus the spaces) so that your code retains it's formatting and we can see things easier. Don't forget thetag at the end of your code.
tables.c:44: warning: braces around scalar initializer
{ NULL, 0, 0}
const struct flag_type extra_flags[] = {
const struct flag_type extra2_flags[] =
tables.h:30: warning: array type has incomplete element type
tables.h:31: warning: array type has incomplete element type
tables.h:32: warning: array type has incomplete element type
tables.h:35: warning: array type has incomplete element type
tables.h:36: warning: array type has incomplete element type
tables.h:37: warning: array type has incomplete element type
extern const struct position_type position_table[];
extern const struct sex_type sex_table[];
extern const struct size_type size_table[];
/* flag tables */
extern const struct flag_type act_flags[];
extern const struct flag_type plr_flags[];
extern const struct flag_type affect_flags[];
extern const struct flag_type extra2_flags[];
In file included from act_comm.c:41:
tables.h:30: warning: array type has incomplete element type
/* game tables */
extern const struct clan_type clan_table[MAX_CLAN];
extern const struct position_type position_table[];
extern const struct sex_type sex_table[];
extern const struct size_type size_table[];
/* flag tables */
extern const struct flag_type act_flags[];
extern const struct flag_type plr_flags[];
extern const struct flag_type affect_flags[];
extern const struct flag_type off_flags[];
extern const struct flag_type imm_flags[];
extern const struct flag_type form_flags[];
extern const struct flag_type part_flags[];
extern const struct flag_type comm_flags[];
extern const struct flag_type extra_flags[];
extern const struct flag_type wear_flags[];
extern const struct flag_type weapon_flags[];
extern const struct flag_type container_flags[];
extern const struct flag_type portal_flags[];
extern const struct flag_type room_flags[];
extern const struct flag_type exit_flags[];
* Russ Taylor (rtaylor@hypercube.org) *
* Gabrielle Taylor (gtaylor@hypercube.org) *
* Brian Moore (zump@rom.org) *
* By using this code, you have agreed to follow the terms of the *
* ROM license, in the file Rom24/doc/rom.license *
***************************************************************************/
/* game tables */
extern const struct position_type position_table[];
extern const struct sex_type sex_table[];
extern const struct size_type size_table[];
struct foo {
int a;
int b;
};
const struct foo bar[] = {
{ 1,2 },
{ 1,2 }
};
tables.c:1136: warning: braces around scalar initializer
tables.c:1136: warning: (near initialization for `extra2_flags')
tables.c:1136: warning: excess elements in scalar initializer
tables.c:1136: warning: (near initialization for `extra2_flags')
tables.c:1136: warning: excess elements in scalar initializer
tables.c:1136: warning: (near initialization for `extra2_flags')
tables.c:1136: warning: excess elements in scalar initializer
tables.c:1136: warning: (near initialization for `extra2_flags')
This is the code in tables.c
const struct flag_type * extra2_flags =
{
{ "graft", ITEM2_GRAFT, TRUE },
{ "ethereal", ITEM2_ETHEREAL, TRUE },
{ "noscan", ITEM2_NOSCAN, TRUE },
{ "relic", ITEM2_RELIC, TRUE },
{ "nodonate", ITEM2_NODONATE, TRUE },
{ "norestring", ITEM2_NORESTRING, TRUE },
{ NULL, 0, 0}
};
Any help would be greatly appriciated. I've never run into this problem.