Add do/while0 to avoid gcc warnings.