diff options
Diffstat (limited to 'chromium/third_party/libxml/src/testdict.c')
-rw-r--r-- | chromium/third_party/libxml/src/testdict.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/third_party/libxml/src/testdict.c b/chromium/third_party/libxml/src/testdict.c index 40bebd0582b..4d745525711 100644 --- a/chromium/third_party/libxml/src/testdict.c +++ b/chromium/third_party/libxml/src/testdict.c @@ -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 |