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

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Mar 24 09:54:43 CDT 2008


Author: kraftche
Date: 2008-03-24 09:54:42 -0500 (Mon, 24 Mar 2008)
New Revision: 1682

Modified:
   MOAB/trunk/mhdf/src/sets.c
   MOAB/trunk/mhdf/src/tags.c
Log:
fix some warnings

Modified: MOAB/trunk/mhdf/src/sets.c
===================================================================
--- MOAB/trunk/mhdf/src/sets.c	2008-03-22 01:31:49 UTC (rev 1681)
+++ MOAB/trunk/mhdf/src/sets.c	2008-03-24 14:54:42 UTC (rev 1682)
@@ -399,7 +399,7 @@
                         hid_t type, void* data,
                         mhdf_Status* status )
 {
-  hid_t slab_id, sslab_id, smem_id, mem_id;
+  hid_t slab_id, mem_id;
   hsize_t offsets[2], counts[2], mcount = count;
   herr_t rval = 0;
   int dims;

Modified: MOAB/trunk/mhdf/src/tags.c
===================================================================
--- MOAB/trunk/mhdf/src/tags.c	2008-03-22 01:31:49 UTC (rev 1681)
+++ MOAB/trunk/mhdf/src/tags.c	2008-03-24 14:54:42 UTC (rev 1682)
@@ -19,6 +19,7 @@
 #include <H5Gpublic.h>
 #include <H5Dpublic.h>
 #include <H5Spublic.h> /* for H5S_MAX_RANK */
+#include <H5Apublic.h>
 #include "status.h"
 #include "file-handle.h"
 #include "mhdf.h"
@@ -1088,7 +1089,8 @@
                       int is_var_len, 
                       mhdf_Status* status )
 {
-  int rval, index;
+  int rval;
+  unsigned index;
   hid_t read_type = type_id;
   hsize_t len;
  
@@ -1102,7 +1104,7 @@
   if (NULL == data)
   {
     mhdf_setFail( status, "Invalid input." );
-    return;
+    return 0;
   }
   
   if (is_var_len) 
@@ -1127,7 +1129,7 @@
     if (read_type < 0)
     {
       mhdf_setFail( status, "Failed to read mesh/default value for tag" );
-      return;
+      return 0;
     }
   }
   
@@ -1146,9 +1148,8 @@
                    void* global_value,
                    mhdf_Status* status )
 {
-  hid_t tag_id, temp_id;
+  hid_t tag_id;
   int rval, var_data;
-  hsize_t len;
   unsigned int index;
   API_BEGIN;
   
@@ -1606,7 +1607,8 @@
 {
   hid_t tag_id, index_id, data_id, offset_id = -1;
   hsize_t size1, size2;
-  int rval, idx;
+  int rval;
+  unsigned idx;
   API_BEGIN;
   
   tag_id = get_tag( file_handle, tag_name, status );




More information about the moab-dev mailing list