From c1e50375d6302656b13d27dfbfec26d9b5ee7fb0 Mon Sep 17 00:00:00 2001 From: eschnett Date: Sun, 22 Jul 2012 21:22:51 +0000 Subject: Declare argument const to prevent compiler warning git-svn-id: http://svn.cactuscode.org/flesh/trunk@4848 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/sbin/GridFuncStuff.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sbin/GridFuncStuff.pl b/lib/sbin/GridFuncStuff.pl index 0e9047cb..38863506 100644 --- a/lib/sbin/GridFuncStuff.pl +++ b/lib/sbin/GridFuncStuff.pl @@ -213,7 +213,7 @@ sub CreateVariableBindings push(@data, ''); push(@data, "static int CCTKi_BindingsFortranWrapper$thorn(void *_GH, void *fpointer)"); push(@data, '{'); - push(@data, ' cGH *GH = _GH;'); + push(@data, ' cGH const *const GH = _GH;'); push(@data, ' const int _cctk_zero = 0;'); push(@data, " void (*function)(\U$thorn\E_C2F_PROTO);"); push(@data, " DECLARE_\U$thorn\E_C2F"); -- cgit v1.2.3