add warning attributes