[MOAB-dev] r5309 - in MOAB/trunk: src/parallel tools/mbcoupler

jvporter at wisc.edu jvporter at wisc.edu
Wed Jan 11 14:28:42 CST 2012


Author: jvporter
Date: 2012-01-11 14:28:42 -0600 (Wed, 11 Jan 2012)
New Revision: 5309

Modified:
   MOAB/trunk/src/parallel/errmem.h
   MOAB/trunk/tools/mbcoupler/errmem.h
Log:
Eliminate more MOAB warnings about unused static functions


Modified: MOAB/trunk/src/parallel/errmem.h
===================================================================
--- MOAB/trunk/src/parallel/errmem.h	2012-01-11 19:37:34 UTC (rev 5308)
+++ MOAB/trunk/src/parallel/errmem.h	2012-01-11 20:28:42 UTC (rev 5309)
@@ -25,6 +25,7 @@
 {}
 #endif
 
+static void *smalloc(size_t size, const char *file) MAYBE_UNUSED;
 static void *smalloc(size_t size, const char *file)
 {
   void *res = malloc(size);
@@ -32,6 +33,7 @@
   return res;
 }
 
+static void *scalloc(size_t nmemb, size_t size, const char *file) MAYBE_UNUSED;
 static void *scalloc(size_t nmemb, size_t size, const char *file)
 {
   void *res = calloc(nmemb, size);
@@ -40,6 +42,7 @@
   return res;
 }
 
+static void *srealloc(void *ptr, size_t size, const char *file) MAYBE_UNUSED;
 static void *srealloc(void *ptr, size_t size, const char *file)
 {
   void *res = realloc(ptr, size);

Modified: MOAB/trunk/tools/mbcoupler/errmem.h
===================================================================
--- MOAB/trunk/tools/mbcoupler/errmem.h	2012-01-11 19:37:34 UTC (rev 5308)
+++ MOAB/trunk/tools/mbcoupler/errmem.h	2012-01-11 20:28:42 UTC (rev 5309)
@@ -25,6 +25,7 @@
 {}
 #endif
 
+static void *smalloc(size_t size, const char *file) MAYBE_UNUSED;
 static void *smalloc(size_t size, const char *file)
 {
   void *res = malloc(size);
@@ -32,6 +33,7 @@
   return res;
 }
 
+static void *scalloc(size_t nmemb, size_t size, const char *file) MAYBE_UNUSED;
 static void *scalloc(size_t nmemb, size_t size, const char *file)
 {
   void *res = calloc(nmemb, size);
@@ -40,6 +42,7 @@
   return res;


More information about the moab-dev mailing list