warning-free build without -Wno-missing-field-initializers
Also removes a GCC_WARN usage and the need for #pragma GCC diagnostic ignored "-Wmissing-braces" for src/decl.c when using gcc.
This commit is contained in:
15
src/sp_lev.c
15
src/sp_lev.c
@@ -3429,7 +3429,20 @@ get_table_objtype(lua_State *L)
|
||||
int
|
||||
lspo_object(lua_State *L)
|
||||
{
|
||||
static object zeroobject = { DUMMY };
|
||||
static object zeroobject = {
|
||||
{ 0 }, /* Str_or_len name */
|
||||
0, /* corpsenm */
|
||||
0, 0, /* id, spe */
|
||||
0, /* coord */
|
||||
0, 0, /* coordxy x,y */
|
||||
0, 0, /* class, containment */
|
||||
0, /* curse_state */
|
||||
0, /* quan */
|
||||
0, /* buried */
|
||||
0, /* lit */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, /* eroded, locked, trapped, recharged,
|
||||
invis, greased, broken, achievment */
|
||||
};
|
||||
#if 0
|
||||
int nparams = 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user