CCS no warnings

I like my code to compile without warnings, to spot potential errors sooner. So I set out to remove all remaining warnings shown by CCSv5.