Fix warning errors when compiling with -O2 on Cray.