Utils and warnings

Some warning removed + UNUSED macro