Ensuring the warning for attribute decl types matches the error for attribute decl types.