Fix a warning about losing a 'volatile' qualifier