Swift errors and diagnostics, page 14 of 20
The error codes and warnings of Swift, with the message that each one prints and what causes it. This page has 3,841 cards.
- Code
objc_invalid_on_throwing_optional_result- Severity
- error
- Message
throwing method cannot be {} because it returns a value of optional type {}; 'nil' indicates failure to Objective-C
- Code
objc_invalid_on_throwing_result- Severity
- error
- Message
throwing method cannot be {} because it returns a value of type {}; return 'Void' or a type that bridges to an Objective-C class
- Code
objc_invalid_on_var- Severity
- error
- Message
property cannot be {} because its type cannot be represented in Objective-C
- Code
objc_invalid_with_generic_params- Severity
- error
- Message
{} cannot be {} because it has generic parameters
- Code
objc_invalid_with_generic_requirements- Severity
- error
- Message
{} cannot be {} because it has a 'where' clause
- Code
objc_name_change- Severity
- error
- Message
{} has ObjC name change from {} to {}
- Code
objc_name_deinit- Severity
- error
- Message
'@objc' deinitializer cannot have a name
- Code
objc_name_func_mismatch- Severity
- error
- Message
'@objc' {} name provides {}, but {} has {}{}
- Code
objc_name_not_valid_identifier- Severity
- error
- Message
'@objc' {} name is not a valid Objective-C identifier
- Code
objc_name_req_nullary- Severity
- error
- Message
'@objc' {} must have a simple name
- Code
objc_name_subscript- Severity
- error
- Message
'@objc' subscript cannot have a name; did you mean to put the name on the getter or setter?
- Code
objc_observing_accessor- Severity
- error
- Message
observers ({}) are not allowed to be marked '@objc'
- Code
objc_operator- Severity
- error
- Message
operator methods cannot be declared '@objc'
- Code
objc_operator_proto- Severity
- error
- Message
'@objc' protocols must not have operator requirements
- Code
objc_optional_requirement_conflict- Severity
- error
- Message
Objective-C method {} provided by {} conflicts with optional requirement {} in protocol {}
- Code
objc_override_method_selector_mismatch- Severity
- error
- Message
Objective-C method has a different selector from the method it overrides ({} vs. {})
- Code
objc_override_other- Severity
- error
- Message
{} with Objective-C selector {} conflicts with {} from superclass {} with the same Objective-C selector
- Code
objc_override_property_name_mismatch- Severity
- error
- Message
Objective-C property has a different name from the property it overrides ({} vs. {})
- Code
objc_protocol_cannot_have_conditional_conformance- Severity
- error
- Message
type {} cannot conditionally conform to '@objc' protocol {} because Objective-C does not support conditional conformances
- Code
objc_protocol_in_generic_extension- Severity
- error
- Message
conformance of {} {} to '@objc' protocol {} cannot be in an extension
- Code
objc_protocol_inherits_non_objc_protocol- Severity
- error
- Message
'@objc' protocol {} cannot refine non-'@objc' protocol {}
- Code
objc_redecl- Severity
- error
- Message
{} with Objective-C selector {} conflicts with {} with the same Objective-C selector
- Code
objc_redecl_category_name- Severity
- error
- Message
{}extension with Objective-C category name {} conflicts with previous {}extension with the same category name
- Code
objc_redecl_same- Severity
- error
- Message
{} with Objective-C selector {} conflicts with previous declaration with the same Objective-C selector
- Code
objc_runtime_visible_cannot_conform_to_objc_protocol- Severity
- error
- Message
class {} cannot conform to '@objc' protocol {} because the class is only visible via the Objective-C runtime
- Code
objc_selector_malformed- Severity
- error
- Message
the type ObjectiveC.Selector is malformed
- Code
objc_setter_for_nonobjc_property- Severity
- error
- Message
'@objc' setter for non-'@objc' property
- Code
objc_setter_for_nonobjc_subscript- Severity
- error
- Message
'@objc' setter for non-'@objc' subscript
- Code
objc_with_embedded- Severity
- error
- Message
Objective-C interoperability cannot be enabled with embedded Swift.
- Code
objc_witness_selector_mismatch- Severity
- error
- Message
Objective-C method {} provided by {} does not match the requirement's selector ({})
- Code
objcmembers_attribute_nonclass- Severity
- error
- Message
'@objcMembers' attribute can only be applied to a class
- Code
object_literal_broken_proto- Severity
- error
- Message
object literal protocol is broken
- Code
object_literal_default_type_missing- Severity
- error
- Message
could not infer type of {} literal
- Code
observe_keypath_property_not_objc_dynamic- Severity
- warning
- Message
passing reference to non-'@objc dynamic' property {} to KVO method {} may lead to unexpected behavior or runtime trap
- Code
observing_accessor_conflicts_with_accessor- Severity
- error
- Message
{} cannot be provided together with {}
- Code
observing_accessor_in_subscript- Severity
- error
- Message
{} is not allowed in subscripts
- Code
observing_readonly_property- Severity
- error
- Message
cannot observe read-only property {}; it can't change
- Code
observingprop_requires_initializer- Severity
- error
- Message
non-member observing properties require an initializer
- Code
old_coroutine_accessor- Severity
- warning
- Message
'{}' is deprecated; please use 'yielding {}' instead
- Code
old_driver_deprecated- Severity
- warning
- Message
legacy driver is now deprecated; consider avoiding specifying '{}'
- Code
only_allowed_in_sil- Severity
- error
- Message
'{}' only allowed in SIL modules
- Code
opaque_mid_composition- Severity
- error
- Message
'{}' should appear at the beginning of a composition
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_cannot_contain_dynamic_self- Severity
- error
- Message
function with opaque return type cannot return the covariant 'Self' type of a class
- Code
opaque_type_in_parameter- Severity
- error
- Message
'some' cannot appear in parameter position in {} type {}
- Code
opaque_type_in_protocol_requirement- Severity
- error
- Message
'some' type cannot be the return type of a protocol requirement; did you mean to add an associated type?
- Code
opaque_type_invalid_constraint- Severity
- error
- Message
a 'some' type must specify only 'Any', 'AnyObject', protocols, and/or a base class
- Code
opaque_type_member_type- Severity
- error
- Message
cannot access member type {} on opaque type {}
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_mismatched_underlying_type_candidates- Severity
- error
- Message
function declares an opaque return type {}, but the return statements in its body do not have matching underlying types
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_mismatched_underlying_type_candidates_named- Severity
- error
- Message
function declares an opaque return type {}, but the return statements in its body do not have matching underlying types
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_no_underlying_type_candidates- Severity
- error
- Message
function declares an opaque return type, but has no return statements in its body from which to infer an underlying type
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_self_referential_underlying_type- Severity
- error
- Message
function opaque return type was inferred as {}, which defines the opaque type in terms of itself
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_unsupported_availability- Severity
- error
- Message
opaque return type cannot depend on {} availability
- Code
opaque_type_unsupported_pattern- Severity
- error
- Message
'some' type can only be declared on a single property declaration
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_var_no_init- Severity
- error
- Message
property declares an opaque return type, but has no initializer expression from which to infer an underlying type
The compiler puts it in the diagnostic group OpaqueTypeInference.
- Code
opaque_type_var_no_underlying_type- Severity
- error
- Message
property declares an opaque return type, but cannot infer the underlying type from its initializer expression
- Code
open_decl_cannot_be_final- Severity
- error
- Message
{} cannot be declared both 'final' and 'open'
The compiler puts it in the diagnostic group EmbeddedRestrictions.
- Code
open_existential_argument_in_embedded_swift- Severity
- warning
- Message
cannot open existential type {} when passing it as an argument to {} in Embedded Swift
The compiler puts it in the diagnostic group EmbeddedRestrictions.
- Code
open_existential_in_embedded_swift- Severity
- warning
- Message
cannot open existential type {} in Embedded Swift
- Code
opened_attribute_expected_lparen- Severity
- error
- Message
expected '(' after 'opened' attribute
- Code
opened_attribute_expected_rparen- Severity
- error
- Message
expected ')' after id value for 'opened' attribute
- Code
opened_attribute_id_value- Severity
- error
- Message
known id for 'opened' attribute must be an unsigned integer
- Code
opened_bad_constraint_type- Severity
- error
- Message
'@opened' constraint type {} is not a protocol or protocol composition
- Code
opened_bad_interface_type- Severity
- error
- Message
'@opened' interface type {} is not a type parameter
- Code
opened_destructor_expected_rparen- Severity
- error
- Message
expected ')' to close parameter list
- Code
opened_shape_class_not_pack_param- Severity
- error
- Message
shape class type must be a pack type parameter
- Code
operator_decl_expected_precedencegroup- Severity
- error
- Message
expected precedence group name after ':' in operator declaration
- Code
operator_decl_inner_scope- Severity
- error
- Message
'operator' may only be declared at file scope
- Code
operator_decl_no_fixity- Severity
- error
- Message
operator must be declared as 'prefix', 'postfix', or 'infix'
- Code
operator_decl_should_not_contain_other_attributes- Severity
- error
- Message
unexpected {} in operator declaration
- Code
operator_in_local_scope- Severity
- error
- Message
operator functions can only be declared at global or in type scope
- Code
operator_in_unrelated_type- Severity
- error
- Message
member operator {}{} must have at least one argument of type {}
- Code
operator_name_invalid_char- Severity
- error
- Message
'{}' is not allowed in operator names
- Code
operator_not_func- Severity
- error
- Message
operators must be declared with 'func'
- Code
operator_redeclared- Severity
- error
- Message
operator redeclared
- Code
operator_static_in_protocol- Severity
- error
- Message
operator '{}' declared in protocol must be 'static'
- Code
option_set_zero_constant- Severity
- warning
- Message
static property {} produces an empty option set
- Code
optional_ambiguous_case_ref- Severity
- warning
- Message
assuming you mean '{}.{}'; did you mean '{}.{}' instead?
- Code
optional_attribute_initializer- Severity
- error
- Message
'optional' cannot be applied to an initializer
- Code
optional_attribute_missing_explicit_objc- Severity
- error
- Message
'optional' requirements are an Objective-C compatibility feature; add '@objc'
- Code
optional_attribute_non_objc_protocol- Severity
- error
- Message
'optional' can only be applied to members of an '@objc' protocol
- Code
optional_attribute_non_protocol- Severity
- error
- Message
'optional' can only be applied to protocol members
- Code
optional_base_not_unwrapped- Severity
- error
- Message
value of optional type {} must be unwrapped to refer to member {} of wrapped base type {}
- Code
optional_chain_isnt_chaining- Severity
- error
- Message
'?' must be followed by a call, member lookup, or subscript
- Code
optional_chain_noop- Severity
- error
- Message
optional chain has no effect, expression already produces {}
- Code
optional_check_nonoptional- Severity
- warning
- Message
non-optional expression of type {} used in a check for optionals
- Code
optional_check_promotion- Severity
- warning
- Message
explicitly specified type {} adds an additional level of optional to the initializer, making the optional check always succeed
- Code
optional_compilerinitialized- Severity
- error
- Message
'@_compilerInitialized' cannot be applied to an Optional let
- Code
optional_element_pattern_not_valid_type- Severity
- error
- Message
optional pattern '?' cannot match value of non-optional type {}
- Code
optional_intrinsics_not_found- Severity
- error
- Message
broken standard library: cannot find intrinsic operations on Optional<T>
- Code
optional_not_unwrapped- Severity
- error
- Message
value of optional type {} must be unwrapped to a value of type {}
- Code
optional_pattern_match_promotion- Severity
- warning
- Message
pattern match introduces an implicit promotion from {} to {}
- Code
optional_req_changed- Severity
- error
- Message
{} is {} an optional requirement
- Code
optional_self_not_unwrapped- Severity
- error
- Message
explicit use of 'self' is required when 'self' is optional, to make control flow explicit
- Code
optional_to_any_coercion- Severity
- warning
- Message
expression implicitly coerced from {} to {}
- Code
optional_used_as_boolean- Severity
- error
- Message
optional type {} cannot be used as a boolean; test for '{}= nil' instead
- Code
originally_defined_in_missing_rparen- Severity
- error
- Message
expected ')' in '@_originallyDefinedIn' argument list
- Code
originally_defined_in_need_nonempty_module_name- Severity
- error
- Message
original module name cannot be empty in '@_originallyDefinedIn'
- Code
originally_defined_in_need_original_module_name- Severity
- error
- Message
expected 'module: "original"' in the first argument to '@_originallyDefinedIn'
- Code
originally_definedin_must_not_before_available_version- Severity
- error
- Message
symbols are moved to the current module before they were available in the OSs
- Code
originally_definedin_topleve_decl- Severity
- error
- Message
{} is only applicable to top-level decl
- Code
orphan_loop_keyword- Severity
- error
- Message
selected range contains {} but not its target loop
- Code
oslog_arg_must_be_bool_literal- Severity
- error
- Message
argument must be a bool literal
- Code
oslog_arg_must_be_closure- Severity
- error
- Message
argument must be a closure
- Code
oslog_arg_must_be_enum_case- Severity
- error
- Message
argument must be a case of enum {}
- Code
oslog_arg_must_be_float_literal- Severity
- error
- Message
argument must be a floating-point literal
- Code
oslog_arg_must_be_integer_literal- Severity
- error
- Message
argument must be an integer literal
- Code
oslog_arg_must_be_metatype_literal- Severity
- error
- Message
argument must be a <Type>.self
- Code
oslog_arg_must_be_string_literal- Severity
- error
- Message
argument must be a string literal
- Code
oslog_arg_must_be_type_member_access- Severity
- error
- Message
argument must be a static method or property of {}
- Code
oslog_call_in_unreachable_code- Severity
- warning
- Message
os log call will never be executed and may have undiagnosed errors
- Code
oslog_invalid_log_message- Severity
- error
- Message
invalid log message; extending types defined in the os module is not supported
- Code
oslog_message_alive_after_opts- Severity
- error
- Message
string interpolation cannot be used in this context; if you are calling an os_log function, try a different overload
- Code
oslog_message_explicitly_created- Severity
- error
- Message
'OSLogMessage' must be created from a string interpolation or string literal
- Code
oslog_message_must_be_string_interpolation- Severity
- error
- Message
argument must be a string interpolation
The compiler puts it in the diagnostic group OSLog.
- Code
oslog_missing_string_section- Severity
- warning
- Message
global variable 'osLogStringSectionName' is missing from the 'os' module; defaulting to '__TEXT,__oslogstring,cstring_literals'
- Code
oslog_non_constant_interpolation- Severity
- error
- Message
'OSLogInterpolation' instance passed to 'OSLogMessage.init' is not a constant
- Code
oslog_non_constant_message- Severity
- error
- Message
'OSLogMessage' instance passed to the log call is not a constant
- Code
oslog_property_not_constant- Severity
- error
- Message
'OSLogInterpolation.{}' is not a constant
The compiler puts it in the diagnostic group OSLog.
- Code
oslog_string_section_not_literal- Severity
- error
- Message
global variable 'osLogStringSectionName' requires a string literal initializer
- Code
oslog_too_many_instructions- Severity
- error
- Message
interpolated expression and arguments are too complex
- Code
out_of_place_then_stmt- Severity
- error
- Message
'then' may only appear as the last statement in an 'if', 'switch', or 'do' expression
- Code
output_cache_hit- Severity
- remark
- Message
cache hit for input file '{}': key '{}'
- Code
output_cache_miss- Severity
- remark
- Message
cache miss for input file '{}': key '{}'
- Code
override_argument_name_mismatch- Severity
- error
- Message
argument labels for {} {} do not match those of overridden {} {}
- Code
override_class_declaration_in_extension- Severity
- error
- Message
cannot override a non-dynamic class declaration from an extension
- Code
override_dynamic_self_mismatch- Severity
- error
- Message
cannot override a Self return type with a non-Self return type
- Code
override_final- Severity
- error
- Message
{} overrides a 'final' {}
- Code
override_global_actor_isolation_mismatch- Severity
- error
- Message
declaration {} has a type with different global actor isolation from any potential overrides
- Code
override_implicit_unowned_executor- Severity
- error
- Message
cannot override an actor's 'unownedExecutor' property that wasn't explicitly defined
- Code
override_less_available- Severity
- error
- Message
overriding {} must be as available as declaration it overrides
- Code
override_let_property- Severity
- error
- Message
cannot override immutable 'let' property {} with the getter of a 'var'
- Code
override_multiple_decls_arg_mismatch- Severity
- error
- Message
declaration {} has different argument labels from any potential overrides
- Code
override_multiple_decls_base- Severity
- error
- Message
declaration {} cannot override more than one superclass declaration
- Code
override_mutable_covariant_property- Severity
- error
- Message
cannot override mutable property {} of type {} with covariant type {}
- Code
override_mutable_covariant_subscript- Severity
- error
- Message
cannot override mutable subscript of type {} with covariant type {}
- Code
override_mutable_with_readonly_property- Severity
- error
- Message
cannot override mutable property with read-only property {}
- Code
override_nonclass_decl- Severity
- error
- Message
'override' can only be specified on class members
- Code
override_not_accessible- Severity
- error
- Message
{}overriding {} must be as accessible as {}
- Code
override_nsobject_hash_error- Severity
- error
- Message
'NSObject.hash(into:)' is not overridable; did you mean to override 'NSObject.hash'?
- Code
override_nsobject_hashvalue_error- Severity
- error
- Message
'NSObject.hashValue' is not overridable; did you mean to override 'NSObject.hash'?
- Code
override_of_non_open- Severity
- error
- Message
overriding non-open {} outside of its defining module
- Code
override_optional_mismatch- Severity
- error
- Message
cannot override {} {} of type {} with non-optional type {}
- Code
override_optional_result_mismatch- Severity
- error
- Message
cannot override {} {} type {} with optional type {}
- Code
override_ownership_mismatch- Severity
- error
- Message
cannot override {} property with {} property
- Code
override_property_type_mismatch- Severity
- error
- Message
property {} with type {} cannot override a property with type {}
- Code
override_reasync_with_non_reasync- Severity
- error
- Message
override of 'reasync' {} should also be 'reasync'
- Code
override_rethrows_with_non_rethrows- Severity
- error
- Message
override of 'rethrows' {} should also be 'rethrows'
The compiler puts it in the diagnostic group StrictMemorySafety.
- Code
override_safe_with_unsafe- Severity
- warning
- Message
override of safe {} with unsafe {}
- Code
override_sendability_mismatch- Severity
- error
- Message
declaration {} has a type with different sendability from any potential overrides
- Code
override_static- Severity
- error
- Message
cannot override {}
- Code
override_throws_objc- Severity
- error
- Message
overriding a throwing '@objc' {} with a non-throwing {} is not supported
- Code
override_typed_throws- Severity
- error
- Message
{} that throws {} cannot override one that throws {}
The compiler puts it in the diagnostic group UnavailableOverride.
- Code
override_unavailable- Severity
- error
- Message
cannot override {} with a declaration that is marked unavailable
- Code
override_unnecessary_IUO- Severity
- warning
- Message
overriding {} parameter of type {} with implicitly unwrapped optional type {}
- Code
override_unnecessary_result_IUO- Severity
- warning
- Message
overriding {} optional result type {} with implicitly unwrapped optional type {}
- Code
override_with_more_effects- Severity
- error
- Message
cannot override non-{} {} with {} {}
- Code
override_with_stored_property- Severity
- error
- Message
cannot override with a stored property {}
- Code
override_with_stored_property_warn- Severity
- warning
- Message
cannot override with a stored property {}
- Code
overriding_decl_missing_differentiable_attr- Severity
- error
- Message
overriding declaration is missing '{}'
- Code
owned_non_getter- Severity
- error
- Message
{} must define a 'get' to support '@_owned'
- Code
ownership_invalid_in_protocols- Severity
- error
- Message
{} cannot be applied to a property declaration in a protocol
- Code
ownership_specifier_nonescaping_closure- Severity
- error
- Message
'{}' cannot be applied to nonescaping closure
- Code
pack_element_attribute_expected_lparen- Severity
- error
- Message
expected '(' after 'pack_element' attribute
- Code
pack_iteration_where_clause_not_supported- Severity
- error
- Message
'where' clause in pack iteration is not supported
- Code
pack_reference_must_be_in_expansion- Severity
- error
- Message
pack reference {} requires expansion using keyword 'repeat'
- Code
pack_reference_outside_expansion- Severity
- error
- Message
pack reference {} can only appear in pack expansion
- Code
pack_type_requires_keyword_each- Severity
- error
- Message
type pack {} must be referenced with 'each'
- Code
package_cmo_requires_library_evolution- Severity
- error
- Message
Library evolution must be enabled for Package CMO
- Code
param_ownership_change- Severity
- error
- Message
{} has {} changing from {} to {}
- Code
parameter_curry_syntax_removed- Severity
- error
- Message
cannot have more than one parameter list
- Code
parameter_let_var_as_attr- Severity
- warning
- Message
'{}' in this position is interpreted as an argument label
- Code
parameter_operator_keyword_argument- Severity
- error
- Message
{} cannot have keyword arguments
- Code
parameter_specifier_as_attr_disallowed- Severity
- error
- Message
'{}' before a parameter name is not allowed, place it before the parameter type instead
- Code
parameter_specifier_repeated- Severity
- error
- Message
parameter may have at most one of the 'inout', 'borrowing', or 'consuming' specifiers
- Code
parameter_unnamed- Severity
- error
- Message
unnamed parameters must be written with the empty name '_'
- Code
parameter_vararg_default- Severity
- error
- Message
variadic parameter cannot have a default value
- Code
parameterized_protocol_type_argument_count_mismatch- Severity
- error
- Message
protocol type {} specialized with {} type arguments (got {}, but expected {})
- Code
paren_void_probably_void- Severity
- warning
- Message
when calling this function in Swift 4 or later, you must pass a '()' tuple; did you mean for the input type to be '()'?
- Code
parser_new_parser_errors- Severity
- error
- Message
SwiftSyntax generated errors for code that C++ parser accepted
- Code
parser_round_trip_error- Severity
- error
- Message
source file did not round-trip through SwiftSyntax
- Code
partial_application_of_function_invalid- Severity
- error
- Message
cannot reference {} as function value
- Code
partial_application_of_function_invalid_swift4- Severity
- warning
- Message
cannot reference {} as function value; calling the function has undefined behavior and will be an error in future Swift versions
- Code
passing_noattrfunc_to_attrfunc- Severity
- error
- Message
passing {} parameter {} to function expecting {} closure
- Code
pattern_binds_no_variables- Severity
- error
- Message
{} declaration does not bind any variables
- Code
pattern_does_not_conform_to_match- Severity
- error
- Message
pattern of type {} does not conform to expected match type {}
- Code
pattern_in_expr- Severity
- error
- Message
{} cannot appear in an expression
- Code
pattern_type_access- Severity
- error
- Message
{} {} because its type uses {} type
- Code
pattern_type_access_inferred- Severity
- error
- Message
{} {} because its type {} uses {} type
- Code
pattern_type_access_inferred_warn- Severity
- warning
- Message
{} {} because its type {} uses {} type
- Code
pattern_type_access_warn- Severity
- warning
- Message
{} {} because its type uses {} type
- Code
pattern_type_mismatch_context- Severity
- error
- Message
type annotation does not match contextual type {}
- Code
pattern_type_not_usable_from_inline- Severity
- error
- Message
type referenced from a '@usableFromInline' {} must be '@usableFromInline' or public
- Code
pattern_type_not_usable_from_inline_frozen- Severity
- error
- Message
type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
- Code
pattern_type_not_usable_from_inline_inferred- Severity
- error
- Message
type referenced from a '@usableFromInline' {} with inferred type {} must be '@usableFromInline' or public
- Code
pattern_type_not_usable_from_inline_inferred_frozen- Severity
- error
- Message
type referenced from a stored property with inferred type {} in a '@frozen' struct must be '@usableFromInline' or public
- Code
pattern_type_not_usable_from_inline_inferred_warn- Severity
- warning
- Message
type referenced from a '@usableFromInline' {} with inferred type {} should be '@usableFromInline' or public
- Code
pattern_type_not_usable_from_inline_warn- Severity
- warning
- Message
type referenced from a '@usableFromInline' {} should be '@usableFromInline' or public
The compiler puts it in the diagnostic group NoUsage.
- Code
pbd_never_used- Severity
- warning
- Message
initialization of {} {} was never used; consider replacing with assignment to '_' or removing it
The compiler puts it in the diagnostic group NoUsage.
- Code
pbd_never_used_stmtcond- Severity
- warning
- Message
value {} was defined but never used; consider replacing with boolean test