Supressed unused variable warning.
Refactored code.
Supressed unused parameter warnings.
Added todo notes for dberris to review supressed unused parameter warnings.
Merge pull request #465 from povilasb/0.11-devel-fix-warnings

Fixed compilation warnings.