summaryrefslogtreecommitdiffstats
path: root/c++/test/tfilter.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-04 07:47:49 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-04 07:47:49 (GMT)
commit2c3ab210575979b29c6f7cfb83c3252f3dcd415a (patch)
tree6be2d48898f963a3c61ce240bbbaa510410b4f03 /c++/test/tfilter.cpp
parent943993af8357c963d4da4141e7e68f5eaa59e21a (diff)
downloadhdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.zip
hdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.tar.gz
hdf5-2c3ab210575979b29c6f7cfb83c3252f3dcd415a.tar.bz2
[svn-r26727] Purpose: Fix warnings HDFFV-8658 cont.
Description: Fixed many type conversion warnings and unused variables. Merged from trunk r26458, but also combined the fix in r26695 (dsets.cpp) to avoid test failure, that was undetected before committing to trunk until r26695. Platforms tested: Linux/64 (platypus) Linux/32 2.6 (jam) SunOS 5.11 (emu)
Diffstat (limited to 'c++/test/tfilter.cpp')
-rw-r--r--c++/test/tfilter.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp
index 854c7bb..3edb83a 100644
--- a/c++/test/tfilter.cpp
+++ b/c++/test/tfilter.cpp
@@ -57,9 +57,13 @@ static herr_t test_filter_internal(hid_t fid, const char *name, hid_t dcpl,
#endif
/* Temporary filter IDs used for testing */
-#define H5Z_FILTER_BOGUS 305
+const int H5Z_FILTER_BOGUS = 305;
+
+#if 0 // UNUSED variables caused warning, so duplicated below with NULL instead
static size_t filter_bogus(unsigned int flags, size_t cd_nelmts,
const unsigned int *cd_values, size_t nbytes, size_t *buf_size, void **buf);
+#endif
+static size_t filter_bogus(size_t nbytes);
/* This message derives from H5Z */
const H5Z_class2_t H5Z_BOGUS[1] = {{
H5Z_CLASS_T_VERS, /* H5Z_class_t version */
@@ -88,9 +92,12 @@ const H5Z_class2_t H5Z_BOGUS[1] = {{
*-------------------------------------------------------------------------
*/
static size_t
+#if 0 // UNUSED variables caused warning, so duplicated below with NULL instead
filter_bogus(unsigned int UNUSED flags, size_t UNUSED cd_nelmts,
const unsigned int UNUSED *cd_values, size_t nbytes,
size_t UNUSED *buf_size, void UNUSED **buf)
+#endif
+filter_bogus(size_t nbytes)
{
return nbytes;
}
@@ -239,7 +246,8 @@ static void test_szip_filter(H5File& file1)
#else /* H5_HAVE_FILTER_SZIP */
SUBTEST("szip filter");
SKIPPED();
- puts(" Szip filter not enabled");
+ H5std_string fname = file1.getFileName();
+ cerr << " Szip filter not enabled for file '" << fname << "'" << endl;
#endif /* H5_HAVE_FILTER_SZIP */
} // test_szip_filter