Fix some compiler warnings

Just fixing up some GCC compiler warnings I ran into.

I set-up warning log messages for the unused result warnings, as they were all "make sure to check this call for errors" type warnings.

There are still a couple pointer-related warnings in `src/hook/main.c`, but I don't know enough about that code to try fixing those yet.