Add __attribute__((unused)) for unused parameters

GCC 4.8 is more picky about unused parameters

Change-Id: Ib3a9f3e8c54d11f4f246207d68c38764d5cad9f9