Index: /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp	(revision 13799)
+++ /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp	(revision 13800)
@@ -1008,9 +1008,9 @@
 
 		/*Intermediary*/
-		int i,k,num;
-		int verbose=0;
+		int i,k;
 
 		/*output*/
 		int* index=NULL;
+		int  num=0;
 
 		/*Get number of triangles*/
@@ -1023,5 +1023,4 @@
 		if (k){
 			index=xNew<int>(3*k);
-			num=0;
 			for (i=0;i<nbt;i++){
 				Triangle &t=triangles[i];
Index: /issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp
===================================================================
--- /issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp	(revision 13799)
+++ /issm/trunk-jpl/src/c/shared/Exceptions/Exceptions.cpp	(revision 13800)
@@ -68,5 +68,6 @@
 	}
 
-	return buffer.str().c_str();
+	const string buffer2 = buffer.str();
+	return buffer2.c_str();
 }/*}}}*/
 const char* ErrorException::PythonReport() const{/*{{{*/
@@ -83,4 +84,5 @@
 	}
 
-	return buffer.str().c_str();
+	const string buffer2 = buffer.str();
+	return buffer2.c_str();
 }/*}}}*/
