[cosmetic] remove unused variables
[cosmetic] unsigned/signed mismatches
[cosmetic] uninitialized floats
Merge pull request #4889 from mkortstiege/x11cosmetics

cosmetics