mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 18:44:53 -05:00
Fix Gcc Warning in support.h
/tests/unittests/libretroshare/serialiser/support.h:168: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] if (outfi) /tests/unittests/libretroshare/serialiser/support.h:234: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] if (outfi)
This commit is contained in:
parent
aadb9acbab
commit
cfcdec458a
@ -166,7 +166,9 @@ template<class ItemClass,class ItemSerialiser> int test_RsItem()
|
||||
rsfi.print(std::cerr,0) ;
|
||||
}
|
||||
if (outfi)
|
||||
{
|
||||
EXPECT_TRUE(*outfi == rsfi) ;
|
||||
}
|
||||
|
||||
|
||||
sersize2 = MAX_BUFSIZE;
|
||||
@ -232,7 +234,9 @@ template<class ItemClass,class ItemSerialiser> int test_RsItem(uint16_t servtype
|
||||
EXPECT_TRUE(outfi != NULL);
|
||||
|
||||
if (outfi)
|
||||
{
|
||||
EXPECT_TRUE(*outfi == rsfi) ;
|
||||
}
|
||||
|
||||
sersize2 = MAX_BUFSIZE;
|
||||
bool done2 = srl.serialise(outfi, (void *) &(buffer[16*8]), &sersize2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user