#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.