Fix 'statement has no effect' compiler warning