To ensure the compiler doesn't optimize out the code.  It might not be needed i this particular case, but it's a good idea just in case.