[MOAB-dev] r5348 - MOAB/trunk/src/parallel

jvporter at wisc.edu jvporter at wisc.edu
Wed Jan 25 23:07:22 CST 2012


Author: jvporter
Date: 2012-01-25 23:07:21 -0600 (Wed, 25 Jan 2012)
New Revision: 5348

Modified:
   MOAB/trunk/src/parallel/tuple_list.h
Log:
Eliminate more warnings from tuple_list


Modified: MOAB/trunk/src/parallel/tuple_list.h
===================================================================
--- MOAB/trunk/src/parallel/tuple_list.h	2012-01-26 04:53:16 UTC (rev 5347)
+++ MOAB/trunk/src/parallel/tuple_list.h	2012-01-26 05:07:21 UTC (rev 5348)
@@ -32,6 +32,9 @@
 
 static void tuple_list_init_max(tuple_list *tl,
                                 unsigned mi, unsigned ml, unsigned mul, 
+                                unsigned mr, uint max) MAYBE_UNUSED;
+static void tuple_list_init_max(tuple_list *tl,
+                                unsigned mi, unsigned ml, unsigned mul, 
                                 unsigned mr, uint max)
 {
   tl->n=0; tl->max=max;
@@ -42,10 +45,13 @@
   tl->vr=(max*mr ? tmalloc(real, max*mr) : 0);
 }
 
-static void tuple_list_free(tuple_list *tl) {
+static void tuple_list_free(tuple_list *tl) MAYBE_UNUSED;
+static void tuple_list_free(tuple_list *tl)
+{
   free(tl->vi), free(tl->vl), free(tl->vul), free(tl->vr);
 }
 
+static void tuple_list_resize(tuple_list *tl, uint max) MAYBE_UNUSED;
 static void tuple_list_resize(tuple_list *tl, uint max)
 {
   tl->max = max;
@@ -59,6 +65,7 @@
     tl->vr=trealloc(real, tl->vr,tl->max*tl->mr);
 }
 
+static void tuple_list_grow(tuple_list *tl) MAYBE_UNUSED;
 static void tuple_list_grow(tuple_list *tl)
 {
   tuple_list_resize(tl,(tl->max ? tl->max+tl->max/2+1 : 2));
















More information about the moab-dev mailing list