unused variable, bad version check

This commit is contained in:
Enno Rehling 2016-02-09 07:06:07 +01:00
parent 5e631fd145
commit 1201a6b739
2 changed files with 6 additions and 6 deletions

View File

@ -209,7 +209,6 @@ static int tolua_setkey(lua_State * L)
const char *name = tolua_tostring(L, 1, 0); const char *name = tolua_tostring(L, 1, 0);
int value = tolua_toboolean(L, 2, 0); int value = tolua_toboolean(L, 2, 0);
int flag = atoi36(name); int flag = atoi36(name);
bool isset = key_get(global.attribs, flag);
if (value) { if (value) {
key_set(&global.attribs, flag); key_set(&global.attribs, flag);
} }

View File

@ -578,11 +578,12 @@ const struct locale *lang)
} }
int read_attribs(storage *store, attrib **alist, void *owner) { int read_attribs(storage *store, attrib **alist, void *owner) {
#if RELEASE_VERSION < ATHASH_VERSION if (global.data_version < ATHASH_VERSION) {
return a_read_orig(store, alist, owner); return a_read_orig(store, alist, owner);
#else }
return a_read(store, alist, owner); else {
#endif return a_read(store, alist, owner);
}
} }
void write_attribs(storage *store, attrib *alist, const void *owner) void write_attribs(storage *store, attrib *alist, const void *owner)