Only use the volatile qualifier when necessary. Volatile specifies that a variable can be changed at any time, possibly by an external program, and therefore it is not a candidate for optimization.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.