[cig-commits] commit: Fix compile warnings

Mercurial hg at geodynamics.org
Mon Sep 12 16:14:50 PDT 2011


changeset:   610:c8652fabb55d
user:        Walter Landry <wlandry at caltech.edu>
date:        Mon Sep 12 14:37:20 2011 -0700
files:       Geometry/tests/ComplexVectorMathSuite.cxx Geometry/tests/VectorMathSuite.cxx Mesh/src/CartesianGenerator.cxx Mesh/src/CompressionAdaptor.cxx Mesh/src/MeshAdaptor.cxx
description:
Fix compile warnings


diff -r fb639b696af8 -r c8652fabb55d Geometry/tests/ComplexVectorMathSuite.cxx
--- a/Geometry/tests/ComplexVectorMathSuite.cxx	Fri May 13 11:57:27 2011 -0700
+++ b/Geometry/tests/ComplexVectorMathSuite.cxx	Mon Sep 12 14:37:20 2011 -0700
@@ -230,7 +230,6 @@ void ComplexVectorMathSuite_TestComplexV
 		double	angle;
 		Cmplx		**matrix;
 		Cmplx		vector[6], differenceVector[6];
-		Cmplx		*coordList[4];
 		int		d;
 		double	realVector[3], tolerance;
 		Cmplx		dotProductResult;
@@ -240,10 +239,6 @@ void ComplexVectorMathSuite_TestComplexV
 
 		tolerance = STG_COMPLEXVECTOR_TOL;
 		
-		coordList[0] = A;
-		coordList[1] = B;
-		coordList[2] = C;
-		coordList[3] = D;
 		Journal_Printf( stream, "****************************\n");
 		Journal_Printf(stream, "Vectors - A, B, C, and D\n");
 		
diff -r fb639b696af8 -r c8652fabb55d Geometry/tests/VectorMathSuite.cxx
--- a/Geometry/tests/VectorMathSuite.cxx	Fri May 13 11:57:27 2011 -0700
+++ b/Geometry/tests/VectorMathSuite.cxx	Mon Sep 12 14:37:20 2011 -0700
@@ -161,14 +161,8 @@ void VectorMathSuite_TestVectorFunctions
 		double D[] = {23  , 5  , -14  , 32, -21,    78};
 		double angle;
 		double vector[6];
-		double *coordList[4];
 		int d;
 		
-		coordList[0] = A;
-		coordList[1] = B;
-		coordList[2] = C;
-		coordList[3] = D;
-
 		Stream_RedirectFile( stream, "testFunctions.dat" );
 
 		/* Check Rotation functions */
diff -r fb639b696af8 -r c8652fabb55d Mesh/src/CartesianGenerator.cxx
--- a/Mesh/src/CartesianGenerator.cxx	Fri May 13 11:57:27 2011 -0700
+++ b/Mesh/src/CartesianGenerator.cxx	Mon Sep 12 14:37:20 2011 -0700
@@ -173,8 +173,7 @@ void _CartesianGenerator_Print( void* me
 	CartesianGenerator*	self = (CartesianGenerator*)meshGenerator;
 	
 	/* Set the Journal for printing informations */
-	Stream* meshGeneratorStream;
-	meshGeneratorStream = Journal_Register( InfoStream_Type, (Name)"CartesianGeneratorStream"  );
+	Journal_Register( InfoStream_Type, (Name)"CartesianGeneratorStream"  );
 
 	assert( self && Stg_CheckType( self, CartesianGenerator ) );
 
diff -r fb639b696af8 -r c8652fabb55d Mesh/src/CompressionAdaptor.cxx
--- a/Mesh/src/CompressionAdaptor.cxx	Fri May 13 11:57:27 2011 -0700
+++ b/Mesh/src/CompressionAdaptor.cxx	Mon Sep 12 14:37:20 2011 -0700
@@ -122,10 +122,6 @@ void _CompressionAdaptor_Print( void* ad
 void _CompressionAdaptor_Print( void* adaptor, Stream* stream ) {
 	CompressionAdaptor*	self = (CompressionAdaptor*)adaptor;
 	
-	/* Set the Journal for printing informations */
-	Stream* adaptorStream;
-	adaptorStream = Journal_Register( InfoStream_Type, (Name)"CompressionAdaptorStream"  );
-
 	/* Print parent */
 	Journal_Printf( stream, "CompressionAdaptor (ptr): (%p)\n", self );
 	_MeshAdaptor_Print( self, stream );
diff -r fb639b696af8 -r c8652fabb55d Mesh/src/MeshAdaptor.cxx
--- a/Mesh/src/MeshAdaptor.cxx	Fri May 13 11:57:27 2011 -0700
+++ b/Mesh/src/MeshAdaptor.cxx	Mon Sep 12 14:37:20 2011 -0700
@@ -86,10 +86,6 @@ void _MeshAdaptor_Print( void* adaptor, 
 void _MeshAdaptor_Print( void* adaptor, Stream* stream ) {
 	MeshAdaptor*	self = (MeshAdaptor*)adaptor;
 	
-	/* Set the Journal for printing informations */
-	Stream* adaptorStream;
-	adaptorStream = Journal_Register( InfoStream_Type, (Name)"MeshAdaptorStream"  );
-
 	/* Print parent */
 	Journal_Printf( stream, "MeshAdaptor (ptr): (%p)\n", self );
 	_Stg_Component_Print( self, stream );



More information about the CIG-COMMITS mailing list