Ignore libgit2 compiler warnings

and kill one from our code. Refs #6098