Merge pull request #199 from sitsofe/clang-fixes

Silence clang missing-field-initializers warning
This commit is contained in:
Ronnie Sahlberg
2016-04-03 09:31:26 -07:00
4 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ void
test_async_abort_simple(void)
{
int ret;
struct tests_async_abort_state state = { 0 };
struct tests_async_abort_state state = { NULL, 0, 0, 0, 0 };
int blocksize = 512;
int blocks_per_io = 8;
unsigned char buf[blocksize * blocks_per_io];

View File

@@ -59,7 +59,7 @@ void
test_async_read(void)
{
int i, ret;
struct tests_async_read_state state = { 0 };
struct tests_async_read_state state = { 0, 0, 0 };
int blocksize = 512;
int blocks_per_io = 8;
int num_ios = 1000;

View File

@@ -58,7 +58,7 @@ void
test_async_write(void)
{
int i, ret;
struct tests_async_write_state state = { 0 };
struct tests_async_write_state state = { 0, 0, 0 };
int blocksize = 512;
int blocks_per_io = 8;
int num_ios = 1000;

View File

@@ -102,7 +102,7 @@ test_mpio_async_caw(void)
{
int i, ret;
int sd_i;
struct test_mpio_async_caw_state state = { 0 };
struct test_mpio_async_caw_state state = { 0, 0, 0 };
int blocksize = 512;
int num_ios = 1000;
uint32_t lba = 0;