mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-04 12:49:28 -04: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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue