Quelch needless warnings (found by Clang)

Fix several warnings that are given when compiling with Clang, but which can easily be avoided. (Only the one with the pragma is ugly, but the workaround is even worse)