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:
Phenom 2018-02-15 18:44:03 +01:00 committed by csoler
parent aadb9acbab
commit cfcdec458a
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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);