Compiler warning fixes

Here is another set. 

Some additional questions:
- How do you want to handle unused variables? My tendency is to delete them, with the thinking that if they are not used then who knows how valid the values they hold are. Other option is to just comment out.
- What to do about the "Frame size of NNNN is larger than 1024 bytes" warnings? Are these frame size checks valid, or should the warning just be turned off?