mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
Fixed warnings on MSVC.
This commit is contained in:
@@ -92,7 +92,12 @@ TEST(buffer, zbuffer_c)
|
||||
|
||||
TEST(buffer, fbuffer)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
FILE* file;
|
||||
tmpfile_s(&file);
|
||||
#else // defined(_MSC_VER)
|
||||
FILE* file = tmpfile();
|
||||
#endif // defined(_MSC_VER)
|
||||
EXPECT_TRUE( file != NULL );
|
||||
|
||||
msgpack::fbuffer fbuf(file);
|
||||
@@ -116,7 +121,13 @@ TEST(buffer, fbuffer)
|
||||
|
||||
TEST(buffer, fbuffer_c)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
FILE* file;
|
||||
tmpfile_s(&file);
|
||||
#else // defined(_MSC_VER)
|
||||
FILE* file = tmpfile();
|
||||
#endif // defined(_MSC_VER)
|
||||
|
||||
void* fbuf = (void*)file;
|
||||
|
||||
EXPECT_TRUE( file != NULL );
|
||||
|
||||
Reference in New Issue
Block a user