If a variable is not used, then the compiler is free to remove it completely, regardless of cv qualification. Simmilarly if a non-volatile variable is never read from. After all, such optimizations...