Fixed unused warnings in get/set enum macros / made getter const
Some compilers see through the cast-to-void trick, so just got rid of the temporaries entirely and jam everything into the vtkDebugMacro statement.
Also made the getter method const, since it doesn't mutate.
Backport: release
Backport: paraview/release
Edited by Ben Boeckel