[ET Trac] [Einstein Toolkit] #906: GRHydro: clean-up unused variables
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Thu May 17 21:25:56 CDT 2012
#906: GRHydro: clean-up unused variables
------------------------------------+---------------------------------------
Reporter: bmundim | Owner:
Type: defect | Status: closed
Priority: minor | Milestone: ET_2012_05
Component: EinsteinToolkit thorn | Version:
Resolution: fixed | Keywords: GRHydro
------------------------------------+---------------------------------------
Comment (by knarf):
You could declare it where it is set, but I believe this would not help
with the warning. The variable is already always set at the moment, but it
even though it is set, it is never used (only in code which the compiler
never sees). So - setting a variable to some value doesn't make it 'being
used', because it never has the chance to change the outcome of the
function in any way.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/906#comment:6>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list