mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 21:50:59 +01:00
engine: net_encode: due to bug in GCC <9, disable duplicated-branches here
This commit is contained in:
parent
fbb88a55cb
commit
b175d8a0cb
@ -972,6 +972,10 @@ qboolean Delta_CompareField( delta_t *pField, void *from, void *to, float timeba
|
||||
}
|
||||
else if( pField->flags & DT_INTEGER )
|
||||
{
|
||||
#if defined __GNUC__ && __GNUC_MAJOR < 9 && !defined __clang__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wduplicated-branches"
|
||||
#endif
|
||||
if( pField->flags & DT_SIGNED )
|
||||
{
|
||||
fromF = *(int *)((byte *)from + pField->offset );
|
||||
@ -982,6 +986,9 @@ qboolean Delta_CompareField( delta_t *pField, void *from, void *to, float timeba
|
||||
fromF = *(uint *)((byte *)from + pField->offset );
|
||||
toF = *(uint *)((byte *)to + pField->offset );
|
||||
}
|
||||
#if defined __GNUC__ && __GNUC_MAJOR < 9 && !defined __clang__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
fromF = Delta_ClampIntegerField( pField, fromF, bSigned, pField->bits );
|
||||
toF = Delta_ClampIntegerField( pField, toF, bSigned, pField->bits );
|
||||
|
Loading…
Reference in New Issue
Block a user