Add .gitignore.
Fix unused variable warning.