Fix a warning for a set but not used variable
Update gitignore