Core: Use __attribute__((unused)) to give away errors

Change-Id: I76ff217ea40a05ba932fea557141b028e96b6180