Fixed #4899 (False positive on unused variable)