diff options
author | schnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2003-04-08 10:44:48 +0000 |
---|---|---|
committer | schnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2003-04-08 10:44:48 +0000 |
commit | 08d71cac58f9fec09f65d3e478b993a79bd94b1b (patch) | |
tree | 13d8e2af84ff2c149ade06df6b011011f7854cf2 /src | |
parent | b0c30dd9a98d70670bf2685164256c44a84e8fc1 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/slab.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |