aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2003-04-08 10:44:48 +0000
committerschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2003-04-08 10:44:48 +0000
commit08d71cac58f9fec09f65d3e478b993a79bd94b1b (patch)
tree13d8e2af84ff2c149ade06df6b011011f7854cf2
parentb0c30dd9a98d70670bf2685164256c44a84e8fc1 (diff)
Make all initialisers constant, as required by ANSI C.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@20 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
-rw-r--r--src/slab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slab.c b/src/slab.c
index f3e1e96..64ce644 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -614,9 +614,9 @@ int Slab_Transfer (cGH const * restrict const cctkGH,
assert (info[d].flip == 0 || info[d].flip == 1);
}
for (d=dim; d<SLAB_MAXDIM; ++d) {
- struct bbox const fake_bbox = { 0, 1, 1 };
- struct arrays const fake_arrays
- = { fake_bbox, fake_bbox, fake_bbox, fake_bbox };
+ static struct bbox const fake_bbox = { 0, 1, 1 };
+ static struct arrays const fake_arrays
+ = { { 0, 1, 1 }, { 0, 1, 1 }, { 0, 1, 1 }, { 0, 1, 1 } };
bbox_check (&fake_bbox);