fix warnings for gcc 10 and clang 10

This commit is contained in:
aurhat
2021-10-05 22:12:49 +02:00
parent 4aa520515c
commit fcd0fd8980
9 changed files with 27 additions and 11 deletions
+2 -2
View File
@@ -478,7 +478,7 @@ void deleteentity(char *ns)
if(t == SOUND) deletesoundentity(e);
conoutf("deleted entity #%d (%s)", n, entnames[e.type]);
deleted_ents.add(e);
memset(&e, 0, sizeof(persistent_entity));
memset((void *)&e, 0, sizeof(persistent_entity));
e.type = NOTUSED;
if(t == LIGHT) calclight();
unsavededits++;
@@ -751,7 +751,7 @@ bool empty_world(int factor, bool force) // main empty world creation routine
clearheaderextras();
unsavededits = oldunsavededits;
}
strncpy(hdr.head, "ACMP", 4);
memcpy(hdr.head, "ACMP", 4);
hdr.version = MAPVERSION;
hdr.headersize = sizeof(header);
hdr.sfactor = sfactor;