Fix CID 1135181
Fix 2 GCC warnings
Fix CID 1134974
Fix CID 1134702
Fix CID 1211146
Improve 8051 analysis