Properly order warning suppression flags during compile
Fix build warnings and .gitignore.

* Comment out unused local function for both clang and g++.
* Get rid of numerous Boost warnings for clang.
* Remove some unused local variables.
* Put TAGS into the .gitignore.