diff options
Diffstat (limited to 'src/SetTime.c')
-rw-r--r-- | src/SetTime.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SetTime.c b/src/SetTime.c index 969c95a..edef89f 100644 --- a/src/SetTime.c +++ b/src/SetTime.c @@ -284,6 +284,8 @@ void MoL_ResetTime(CCTK_ARGUMENTS) else { CCTK_WARN (0, "internal error"); + /* Avoid compiler warning */ + alpha_array = NULL; } cctkGH->cctk_time = ((* Original_Time) @@ -463,7 +465,9 @@ void MoL_ResetDeltaTime(CCTK_ARGUMENTS) } else { - CCTK_WARN (0, "internal error"); + CCTK_WARN (0, "internal error"); + /* Avoid compiler warning */ + alpha_array = NULL; } cctkGH->cctk_delta_time = ((alpha_array[substep + 1] - alpha_array[substep]) |