summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2022-03-08 23:33:52 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2022-03-08 23:33:52 (GMT)
commit8cf9d236c1390d48caf5bf29df3546b8cd0f004a (patch)
tree3ebe889d3fad4bfcf3acf4fd08c37a7beb641529 /test
parent909c0371c870078550961397a684777996062f86 (diff)
downloadhdf5-8cf9d236c1390d48caf5bf29df3546b8cd0f004a.zip
hdf5-8cf9d236c1390d48caf5bf29df3546b8cd0f004a.tar.gz
hdf5-8cf9d236c1390d48caf5bf29df3546b8cd0f004a.tar.bz2
Add comments everywhere that MSVC falsely reports a `const` problem with
a `memset` call (warning C4090).
Diffstat (limited to 'test')
-rw-r--r--test/links.c3
-rw-r--r--test/vfd.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/test/links.c b/test/links.c
index 382d932..bf7475d 100644
--- a/test/links.c
+++ b/test/links.c
@@ -9046,6 +9046,9 @@ external_set_elink_fapl1(hid_t fapl, hbool_t new_format)
/* settings for multi file */
memset(memb_map, 0, sizeof memb_map);
memset(memb_fapl, 0, sizeof memb_fapl);
+ /* MSVC reports `warning C4090: 'function': different 'const' qualifiers`
+ * because it is confused by the `const`.
+ */
memset(memb_name, 0, sizeof memb_name);
memset(memb_addr, 0, sizeof memb_addr);
memset(sv, 0, sizeof sv);
diff --git a/test/vfd.c b/test/vfd.c
index 6f9bd9a..8453ff9 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -1472,6 +1472,9 @@ test_multi(void)
memset(memb_map, 0, sizeof(memb_map));
memset(memb_fapl, 0, sizeof(memb_fapl));
+ /* MSVC reports `warning C4090: 'function': different 'const' qualifiers`
+ * because it is confused by the `const`.
+ */
memset(memb_name, 0, sizeof(memb_name));
memset(memb_addr, 0, sizeof(memb_addr));
memset(sv, 0, sizeof(sv));
@@ -1724,6 +1727,9 @@ test_multi_compat(void)
memset(memb_map, 0, sizeof memb_map);
memset(memb_fapl, 0, sizeof memb_fapl);
+ /* MSVC reports `warning C4090: 'function': different 'const' qualifiers`
+ * because it is confused by the `const`.
+ */
memset(memb_name, 0, sizeof memb_name);
memset(memb_addr, 0, sizeof memb_addr);
memset(sv, 0, sizeof sv);