Add __attribute__((unused)) for unused parameters

GCC 4.8 is more picky about unused parameters

Change-Id: Ib3a9f3e8c54d11f4f246207d68c38764d5cad9f9
Optimized battery images

Change-Id: I9850bc8896106a33d5c753dae997ea4eef549a47