Remove some compiler warnings

Change-Id: I417384ae683b03db688fb0e268b85c2dbf15d80c
Reviewed-on: http://gerrit.dmdirc.com/3545
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager