Removed loads of warnings.

As per @NathanSweet 's request https://github.com/libgdx/libgdx/commit/e5ceac2310626bad714be3ec7ee725fd0f6159ba#commitcomment-5944213