Remove unused variables
Fix unused parameter warning in conditionally compiled function
Add missing check for successful feature read operation
Fix missing initializations
Replace GNU old-style field designator extension

The obsolete GNU syntax is replaced with the C99 syntax for initialization
of struct fields.
Merge pull request #124 from nitsch/fix-warnings

Fix warnings