[MOAB-dev] r3104 - MOAB/trunk/mhdf/src

jvporter at wisc.edu jvporter at wisc.edu
Mon Aug 10 17:05:15 CDT 2009


Author: jvporter
Date: 2009-08-10 17:05:14 -0500 (Mon, 10 Aug 2009)
New Revision: 3104

Modified:
   MOAB/trunk/mhdf/src/tags.c
Log:
Fix bad commit


Modified: MOAB/trunk/mhdf/src/tags.c
===================================================================
--- MOAB/trunk/mhdf/src/tags.c	2009-08-10 21:53:01 UTC (rev 3103)
+++ MOAB/trunk/mhdf/src/tags.c	2009-08-10 22:05:14 UTC (rev 3104)
@@ -743,6 +743,7 @@
   hid_t type_id;
   int rank;
   hsize_t dims[H5S_MAX_RANK];
+  int perm[H5S_MAX_RANK];
   
   type_id = H5Aget_type( attrib_id );
   switch (H5Tget_class(type_id)) {
@@ -754,6 +755,7 @@
       break;
     case H5T_ARRAY:
 #if defined(H5Tget_array_dims_vers) && H5Tget_array_dims_vers > 1
+      (void)perm; // eliminate warning
       rank = H5Tget_array_dims2( type_id, dims );
 #else
       rank = H5Tget_array_dims( type_id, dims, perm );
@@ -820,6 +822,7 @@
   unsigned int index;
   int rank, var_data;
   hsize_t dims[H5S_MAX_RANK];
+  int perm[H5S_MAX_RANK];
   H5T_class_t class_tmp;
 
   API_BEGIN;
@@ -986,6 +989,7 @@
     case H5T_ARRAY:
       
 #if defined(H5Tget_array_dims_vers) && H5Tget_array_dims_vers > 1
+      (void)perm; // eliminate warning
       rank = H5Tget_array_dims2( type_id, dims );
 #else
       rank = H5Tget_array_dims( type_id, dims, perm );



More information about the moab-dev mailing list