From 9afee299246e85290d32ba81d37905b8549f84bf Mon Sep 17 00:00:00 2001 From: jthorn Date: Wed, 24 Aug 2005 10:04:04 +0000 Subject: fix a bug found by Thomas Radke: > AEILocalInterp/src/InterpLocalUniform.c:2058 where the return statement is > marked as an "/*** ERROR RETURN ***/" but is actually also reached in the > non-error case. I believe there are some curly brackets missing, this return > statement needs to be enclosed in the preceding if-block along with the > CCTK_VWarn() call. git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@29 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef --- src/InterpLocalUniform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InterpLocalUniform.c b/src/InterpLocalUniform.c index 860e085..9e7653e 100644 --- a/src/InterpLocalUniform.c +++ b/src/InterpLocalUniform.c @@ -2047,7 +2047,8 @@ if (p_error_info->found_per_point_status) -p_error_info->error_count, "error_point_status"); if (status < 0) - then CCTK_VWarn(ERROR_MSG_SEVERITY_LEVEL, + then { + CCTK_VWarn(ERROR_MSG_SEVERITY_LEVEL, __LINE__, __FILE__, CCTK_THORNSTRING, "\n" " CCTK_InterpLocalUniform():\n" @@ -2056,6 +2057,7 @@ if (p_error_info->found_per_point_status) , status); return status; /*** ERROR RETURN ***/ + } } return 0; /*** NORMAL RETURN ***/ -- cgit v1.2.3