avoid warning reg. redefined macro
fix warnings reg. wrong format specifier
avoid warnings reg. unused variables
fix warning reg. expresion always false
fix warnings reg. wrong order of evaluation
fix warnings reg. wrong header guards
avoid warnings reg. unused functions
fix warning reg. use of potentialy uninitialized variable
Merge pull request #979 from Jojo-Schmitz/warnings

Warnings