[Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/sbin CreateParameterBindings.pl create_c_stuff.pl"
Steve White
swhite at aei.mpg.de
Thu Oct 26 07:17:42 CDT 2006
Update of /cactusdevcvs/Cactus/lib/sbin
In directory asylum.cct.lsu.edu:/tmp/cvs-serv1784/lib/sbin
Modified Files:
CreateParameterBindings.pl create_c_stuff.pl
Log Message:
This is the application of the patch reported in Patches and Developsrs
Fri 20 Oct 06
"g++ warning: operation on *bla* may be undefined"
and PR 2070
http://www.cactuscode.org/cactus_cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&data
base=cactus&pr=2070
Preprocessing arrangements/Carpet/Carpet/src/Timing.cc
Compiling arrangements/Carpet/Carpet/src/Timing.cc
configs/chain_gcc_carpet/build/Carpet/Timing.cc:
In function âvoid Carpet::InitTimingVariables(const cGH*)â:
configs/chain_gcc_carpet/build/Carpet/Timing.cc:120:
warning: operation on âcctki_useâ may be undefined
The culprit was in generated bindings code meant to get rid of warnings
about unused variables corresponding to Cactus parameters included in
code by the DECLARE_CCTK_PARAMETERS macro.
This replaces the offending code with enums initialised by sizeof calls;
the nature of all the entities involved is much clearer, both to
compilers and to me.
Like the existing solution, this permits the user to proceed to make more
declarations after the DECLARE_CCTK_PARAMETERS macro (simply putting a list
of variable assignments after the declaration would not have that property).
More information about the Flesh-cvs
mailing list