summaryrefslogtreecommitdiffstats
path: root/test/vds_swmr.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 17:35:00 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 17:35:00 (GMT)
commit833c0a2fc62927b1c1920c895f760260c3515b9b (patch)
treec1d3b3905efd6b0f12f81a78280d2ab0131d7517 /test/vds_swmr.h
parent98c4ed49e843e9006e027553597a7e244d21c5cb (diff)
downloadhdf5-833c0a2fc62927b1c1920c895f760260c3515b9b.zip
hdf5-833c0a2fc62927b1c1920c895f760260c3515b9b.tar.gz
hdf5-833c0a2fc62927b1c1920c895f760260c3515b9b.tar.bz2
Move some static functions and variables to .c files to avoid unused
function/variable warnings.
Diffstat (limited to 'test/vds_swmr.h')
-rw-r--r--test/vds_swmr.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/test/vds_swmr.h b/test/vds_swmr.h
index eb2dcf4..18d6b35 100644
--- a/test/vds_swmr.h
+++ b/test/vds_swmr.h
@@ -84,31 +84,17 @@
#define N_PLANES_TO_WRITE 25
/* Planes */
-static hsize_t PLANES[N_SOURCES][RANK] = {
- {1, SM_HEIGHT, WIDTH},
- {1, LG_HEIGHT, WIDTH},
- {1, SM_HEIGHT, WIDTH},
- {1, LG_HEIGHT, WIDTH},
- {1, SM_HEIGHT, WIDTH},
- {1, LG_HEIGHT, WIDTH}
-};
+extern hsize_t PLANES[N_SOURCES][RANK];
/* File names for source datasets */
-static char FILE_NAMES[N_SOURCES][NAME_LEN] = {
- {"vds_swmr_src_a.h5"},
- {"vds_swmr_src_b.h5"},
- {"vds_swmr_src_c.h5"},
- {"vds_swmr_src_d.h5"},
- {"vds_swmr_src_e.h5"},
- {"vds_swmr_src_f.h5"}
-};
+extern char FILE_NAMES[N_SOURCES][NAME_LEN];
/* VDS file name */
-static char VDS_FILE_NAME[NAME_LEN] = "vds_swmr.h5";
+extern char VDS_FILE_NAME[NAME_LEN];
/* Dataset names */
-static char SOURCE_DSET_PATH[NAME_LEN] = "/source_dset";
-static char VDS_DSET_NAME[NAME_LEN] = "vds_dset";
+extern char SOURCE_DSET_PATH[NAME_LEN];
+extern char VDS_DSET_NAME[NAME_LEN];
/* Fill values */
#endif /* VDS_SWMR_H */