Oops.  Move volatile to the right function for incr.