aboutsummaryrefslogtreecommitdiff
path: root/src/RK45.c
diff options
context:
space:
mode:
authorhinder <hinder@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2012-11-26 12:12:53 +0000
committerhinder <hinder@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2012-11-26 12:12:53 +0000
commit15f9511f821e350bc8c0c850b6f0a65ff786df87 (patch)
treed87c03ebcd652bbf8df8de3667df9eb3c3203858 /src/RK45.c
parent5116123ac33f875c3d8f4a77ce6489a2956881bb (diff)
Set variables in error branch of conditionals to avoid compiler warnings
The compiler doesn't know that CCTK_WARN(0,…) is fatal. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@189 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/RK45.c')
-rw-r--r--src/RK45.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/RK45.c b/src/RK45.c
index 880f1fb..ea547fd 100644
--- a/src/RK45.c
+++ b/src/RK45.c
@@ -150,6 +150,10 @@ void MoL_RK45Add(CCTK_ARGUMENTS)
else
{
CCTK_WARN (0, "internal error");
+ /* Avoid compiler warnings */
+ beta_array = NULL;
+ gammastar_array = NULL;
+ gamma_array = NULL;
}
int totalsize = 1;