summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2024-03-09 17:05:37 (GMT)
committerGitHub <noreply@github.com>2024-03-09 17:05:37 (GMT)
commitd4c84f8d0a60e6eedd7288116d203dccf24a0b3a (patch)
treee674788a624b48803351e335bf0956a9009dc0ad
parent3d09a7d5f6dd0f602a8f343809384ed00cd13f5c (diff)
downloadhdf5-d4c84f8d0a60e6eedd7288116d203dccf24a0b3a.zip
hdf5-d4c84f8d0a60e6eedd7288116d203dccf24a0b3a.tar.gz
hdf5-d4c84f8d0a60e6eedd7288116d203dccf24a0b3a.tar.bz2
Fix the last C++ stack size warning (#4099)
-rw-r--r--c++/test/tfilter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp
index 5bfd34c..26be068 100644
--- a/c++/test/tfilter.cpp
+++ b/c++/test/tfilter.cpp
@@ -140,7 +140,6 @@ static void
test_szip_filter(H5File &file1)
{
#ifdef H5_HAVE_FILTER_SZIP
- int points[DSET_DIM1][DSET_DIM2], check[DSET_DIM1][DSET_DIM2];
unsigned szip_options_mask = H5_SZIP_NN_OPTION_MASK;
unsigned szip_pixels_per_block = 4;
@@ -149,6 +148,8 @@ test_szip_filter(H5File &file1)
if (h5_szip_can_encode() == 1) {
char *tconv_buf = new char[1000];
+ auto points = new int[DSET_DIM1][DSET_DIM2];
+ auto check = new int[DSET_DIM1][DSET_DIM2];
try {
const hsize_t size[2] = {DSET_DIM1, DSET_DIM2};
@@ -201,6 +202,8 @@ test_szip_filter(H5File &file1)
}
delete[] tconv_buf;
+ delete[] points;
+ delete[] check;
} // if szip presents
else {
SKIPPED();