summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-04-21 15:45:20 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-04-21 15:45:20 (GMT)
commit40df33dff700188b3550150f1ab5d036c7d8c02d (patch)
treec1462fba903b78904f9daf2d107718e08aacb714 /src
parentbdb33e7c9880c61acc47bb0ea5bb3b0586f3c1ad (diff)
downloadhdf5-40df33dff700188b3550150f1ab5d036c7d8c02d.zip
hdf5-40df33dff700188b3550150f1ab5d036c7d8c02d.tar.gz
hdf5-40df33dff700188b3550150f1ab5d036c7d8c02d.tar.bz2
[svn-r16818] Fix problem in H5Z.c with --disable-deprecated-symbols
Tested: jam (--disable-deprecated-symbols)
Diffstat (limited to 'src')
-rw-r--r--src/H5Z.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index 80382f4..194ba2a 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -244,6 +244,7 @@ H5Zregister(const void *cls)
* can be determined by the value of the first field.
*/
if(cls_real->version != H5Z_CLASS_T_VERS) {
+#ifndef H5_NO_DEPRECATED_SYMBOLS
/* Assume it is an old "H5Z_class1_t" instead */
const H5Z_class1_t *cls_old = (const H5Z_class1_t *) cls;
@@ -259,6 +260,11 @@ H5Zregister(const void *cls)
/* Set cls_real to point to the translated structure */
cls_real = &cls_new;
+
+#else /* H5_NO_DEPRECATED_SYMBOLS */
+ /* Deprecated symbols not allowed, throw an error */
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid H5Z_class_t version number");
+#endif /* H5_NO_DEPRECATED_SYMBOLS */
} /* end if */
if (cls_real->id<0 || cls_real->id>H5Z_FILTER_MAX)