fix some clang warnings

This commit is contained in:
Alug committed 2024-07-03 17:36:37 +02:00
1 parent 9090a5cd73
commit 8d968d7f89
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -47,7 +47,9 @@ int unsortedVertexArrayAllocSize = 65536;
void HWR_StartBatching(void)
{
if (currently_batching)
{
I_Error("Repeat call to HWR_StartBatching without HWR_RenderBatches");
}
// init arrays if that has not been done yet
if (!finalVertexArray)
+1 -1
View File
@@ -147,7 +147,7 @@ static const udata_field_t mobj_fields[] = {
FIELD(mobj_t, colorized, udatalib_getter_boolean, udatalib_setter_boolean),
FIELD(mobj_t, mirrored, udatalib_getter_boolean, udatalib_setter_boolean),
FIELD(mobj_t, rollmodel, udatalib_getter_boolean, udatalib_setter_boolean),
{ NULL },
{ NULL, 0, NULL, NULL },
};
#undef FIELD
+1 -1
View File
@@ -160,7 +160,7 @@ static const udata_field_t player_fields[] = {
// Same as player.name
{ "sliproll", 0, player_sliproll_getter, player_sliproll_noset },
{ "ping", 0, player_ping_getter, player_ping_noset }, // Hmm originally setter doesn't exist so data is written as unreachable custom field...
{ NULL },
{ NULL, 0, NULL, NULL },
};
#undef FIELD