remove some ATTRIBUTE_UNUSED uses