Fixes compilation errors on GCC.

Attribute __unused was not recognized.