From 367219cb43c8289f536a3845457f8c8f999fcaf0 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 12 Nov 2002 11:07:37 +0000 Subject: Fixed compiler warnings about potentially uninitialized variables and using trigraphs. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@93 10716dce-81a3-4424-a2c8-48026a0d3035 --- src/Mapping.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mapping.c b/src/Mapping.c index e8d3e9c..4434c8f 100644 --- a/src/Mapping.c +++ b/src/Mapping.c @@ -141,6 +141,10 @@ static CCTK_INT DefineMapping (const cGH *GH, cGroup vinfo; + /* prevent compiler warnings */ + mapping = NULL; + pughGH = NULL; + /* identify myself */ myproc = CCTK_MyProc (GH); nprocs = CCTK_nProcs (GH); @@ -179,7 +183,7 @@ static CCTK_INT DefineMapping (const cGH *GH, } else if ((pughGH = (const pGH *) PUGH_pGH (GH)) == NULL) { - error_msg = "no PUGH GH extension registered (PUGH not activated ??)"; + error_msg = "no PUGH GH extension registered (PUGH not activated ?)"; retval = -4; } else -- cgit v1.2.3