diff options
Diffstat (limited to 'testdict.c')
-rw-r--r-- | testdict.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -159,7 +159,8 @@ static int run_test2(xmlDictPtr parent) { fprintf(stderr, "Out of memory while creating sub-dictionary\n"); exit(1); } - memset(test2, 0, sizeof(test2)); + /* Cast to avoid buggy warning on MSVC. */ + memset((void *) test2, 0, sizeof(test2)); /* * Fill in NB_STRINGS_MIN, at this point the dictionary should not grow @@ -322,7 +323,8 @@ static int run_test1(void) { fprintf(stderr, "Out of memory while creating dictionary\n"); exit(1); } - memset(test1, 0, sizeof(test1)); + /* Cast to avoid buggy warning on MSVC. */ + memset((void *) test1, 0, sizeof(test1)); /* * Fill in NB_STRINGS_MIN, at this point the dictionary should not grow |