[cig-commits] commit: Fix compile warnings

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


changeset:   423:ff33925c5298
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Mon Sep 12 14:32:07 2011 -0700
files:       MaterialPoints/src/BackgroundParticleLayout.cxx MaterialPoints/src/GaussMapper.cxx Utils/src/DiffusionSMT.cxx
description:
Fix compile warnings


diff -r d831e461ade4 -r ff33925c5298 MaterialPoints/src/BackgroundParticleLayout.cxx
--- a/MaterialPoints/src/BackgroundParticleLayout.cxx	Mon Jul 25 01:46:47 2011 -0700
+++ b/MaterialPoints/src/BackgroundParticleLayout.cxx	Mon Sep 12 14:32:07 2011 -0700
@@ -72,9 +72,6 @@ BackgroundParticleLayout* _BackgroundPar
 
 
 void _BackgroundParticleLayout_Init( void* particleLayout ) {
-	BackgroundParticleLayout* self;
-
-	self = (BackgroundParticleLayout*)particleLayout;
 }
 
 void _BackgroundParticleLayout_Delete( void* particleLayout ) {
diff -r d831e461ade4 -r ff33925c5298 MaterialPoints/src/GaussMapper.cxx
--- a/MaterialPoints/src/GaussMapper.cxx	Mon Jul 25 01:46:47 2011 -0700
+++ b/MaterialPoints/src/GaussMapper.cxx	Mon Sep 12 14:32:07 2011 -0700
@@ -77,9 +77,6 @@ void* _GaussMapper_DefaultNew( Name name
 }
 
 void _GaussMapper_Init( void* mapper ) {
-	GaussMapper* self;
-
-	self = (GaussMapper*)mapper;
 }
 
 void _GaussMapper_Delete( void* mapper ) {
@@ -150,12 +147,9 @@ void _GaussMapper_Map( void* mapper ) {
 	IntegrationPointsSwarm*	integrationSwarm = self->integrationSwarm;
 	MaterialPointsSwarm*		materialSwarm = self->materialSwarm;
 	IntegrationPoint*			integrationPoint;
-	MaterialPoint*				materialPoint;
 	MaterialPointRef*			ref;
 	Particle_Index				point_I;
 
-	materialPoint = (MaterialPoint*)Swarm_ParticleAt( materialSwarm, 0 ); /* Get the first and only point */
-	
 	/* Map each point in integration to the single material point for its properties */
 	for ( point_I = 0; point_I < integrationSwarm->particleLocalCount; point_I++ ) {
 		integrationPoint = (IntegrationPoint*)Swarm_ParticleAt( integrationSwarm, point_I );
diff -r d831e461ade4 -r ff33925c5298 Utils/src/DiffusionSMT.cxx
--- a/Utils/src/DiffusionSMT.cxx	Mon Jul 25 01:46:47 2011 -0700
+++ b/Utils/src/DiffusionSMT.cxx	Mon Sep 12 14:32:07 2011 -0700
@@ -87,9 +87,6 @@ DiffusionSMT* _DiffusionSMT_New(  DIFFUS
 }
 
 void _DiffusionSMT_Init( void* matrixTerm ) {
-	DiffusionSMT* self;
-
-	self = (DiffusionSMT*)matrixTerm;
 }
 
 void _DiffusionSMT_Delete( void* matrixTerm ) {



More information about the CIG-COMMITS mailing list