Avoid gcc warnings due to misplaced 'const'.