Programming Search⌘K

C errors and diagnostics, page 3 of 7

The error codes and warnings of C, with the message that each one prints and what causes it. This page has 1,208 cards.

Attribute ‘…’ on overriding function conflicts with base declaration. -Wfunction-effects

Clang has 31 messages for this flag.

Code
-Wfunction-effects
Severity
warning
Message
attribute ‘{}’ on overriding function conflicts with base declaration
Message
effects conflict when merging declarations; kept ‘{}’, discarded ‘{}’
Message
function
Message
constructor
Message
destructor
Message
lambda
Message
block
Message
member initializer of constructor

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Body of cpu_dispatch function will be ignored. -Wfunction-multiversion

Clang enables it by default. It also controls -Wtarget-clones-mixed-specifiers. Clang has 7 messages for this flag.

Code
-Wfunction-multiversion
Severity
warning
Message
body of cpu_dispatch function will be ignored
Message
priority of default version cannot be overridden; ignoring priority
Message
CPU list contains duplicate entries; attribute ignored
Message
version list contains duplicate entries
Message
version list contains entries that don’t impact code generation
Message
function version ‘{}’ is unreachable; ignoring version
Message
version priority ‘{}’ is outside the allowed range [1-255]; ignoring priority

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘diagnose_if’ is a clang extension. -Wgcc-compat

Clang enables some of the diagnostics that it controls by default. Clang has 9 messages for this flag.

Code
-Wgcc-compat
Severity
warning
Message
‘diagnose_if’ is a clang extension
Message
‘enable_if’ is a clang extension
Message
__final is a GNU extension, consider using C++11 final
Message
GCC does not allow {} attribute in this position on a function definition
Message
GCC does not allow the ‘cleanup’ attribute argument to be anything other than a simple identifier
Message
GCC does not allow an attribute in this position on a function declaration
Message
GCC does not allow the {} attribute to be written on a type
Message
GCC requires a function with the {} attribute to be variadic

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

A group of warnings. -Wgnu

Clang enables some of the diagnostics that it controls by default. It also controls -Wgnu-alignof-expression, -Wgnu-anonymous-struct, -Wgnu-auto-type, -Wgnu-binary-literal, -Wgnu-case-range, -Wgnu-complex-integer, -Wgnu-compound-literal-initializer, -Wgnu-conditional-omitted-operand, -Wgnu-designator, -Wgnu-empty-struct, -Wgnu-flexible-array-initializer, -Wgnu-flexible-array-union-member and 19 more.

Code
-Wgnu
Severity
warning

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Use of GNU array range extension. -Wgnu-designator

Clang enables some of the diagnostics that it controls by default. Clang has 3 messages for this flag.

Code
-Wgnu-designator
Severity
warning
Message
use of GNU array range extension
Message
use of GNU ‘missing =’ extension in designator
Message
use of GNU old-style field designator extension

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Empty. -Wgnu-empty-struct

Clang has 11 messages for this flag.

Code
-Wgnu-empty-struct
Severity
warning
Message
empty
Message
struct
Message
union
Message
flexible array member {} in otherwise empty
Message
struct
Message
interface
Message
union
Message
class

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Expression is not an. -Wgnu-folding-constant

Clang enables some of the diagnostics that it controls by default. Clang has 5 messages for this flag.

Code
-Wgnu-folding-constant
Severity
warning
Message
expression is not an
Message
integer
Message
integral
Message
in-class initializer for static data member is not a constant expression; folding it to a constant is a GNU extension
Message
variable length array folded to constant array as an extension

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘. -Wgnu-pointer-arith

Clang has 19 messages for this flag.

Code
-Wgnu-pointer-arith
Severity
warning
Message
‘
Message
counted_by
Message
sized_by
Message
counted_by_or_null
Message
sized_by_or_null
Message
sized_by
Message
sized_by
Message
sized_by_or_null

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Capture host side class data member by this pointer in device or host device lambda function may result in invalid memory access if this pointer is not accessible on device side. -Wgpu-maybe-wrong-side

Clang enables it by default.

Code
-Wgpu-maybe-wrong-side
Severity
warning
Message
capture host side class data member by this pointer in device or host device lambda function may result in invalid memory access if this pointer is not accessible on device side

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Reserving the caller-saved register ‘…’ may lead to incorrect code if it is not also reserved in all other translation units and libraries; you are responsible for ensuring the register is managed consistently. -Whexagon-reserved-caller-saved

Clang enables it by default.

Code
-Whexagon-reserved-caller-saved
Severity
warning
Message
reserving the caller-saved register ‘{}’ may lead to incorrect code if it is not also reserved in all other translation units and libraries; you are responsible for ensuring the register is managed consistently

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Excess precision is requested but the target does not support excess precision which may result in observable differences in complex division behavior. -Whigher-precision-for-complex-division

Clang enables it by default. Clang has 2 messages for this flag.

Code
-Whigher-precision-for-complex-division
Severity
warning
Message
excess precision is requested but the target does not support excess precision which may result in observable differences in complex division behavior
Message
, additional uses where the requested higher precision cannot be honored were found but not diagnosed

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

… is only available. -Whlsl-availability

Clang enables it by default. Clang has 5 messages for this flag.

Code
-Whlsl-availability
Severity
error
Message
{} is only available
Message
in {} environment
Message
{} is unavailable
Message
support for groupshared parameter annotation not added until HLSL 202x
Message
passing groupshared variable to a parameter annotated with inout. See ‘groupshared’ parameter annotation added in 202x

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘trivial_abi’ cannot be applied to …. -Wignored-attributes

Clang enables it by default. It also controls -Wdllexport-explicit-instantiation. Clang has 212 messages for this flag.

Code
-Wignored-attributes
Severity
warning
Message
‘trivial_abi’ cannot be applied to {}
Message
alias
Message
ifunc
Message
alias
Message
ifunc
Message
aliasee
Message
resolver
Message
requested alignment is less than minimum alignment of {} for type {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘…’ qualifier. -Wignored-base-class-qualifiers

Clang enables some of the diagnostics that it controls by default. It also controls -Wignored-qualifiers. Clang has 4 messages for this flag.

Code
-Wignored-base-class-qualifiers
Severity
warning
Message
‘{}’ qualifier
Message
s
Message
has
Message
have

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Expected string. -Wignored-pragmas

Clang enables it by default. It also controls -Wignored-pragma-intrinsic, -Wignored-pragma-optimize. Clang has 67 messages for this flag.

Code
-Wignored-pragmas
Severity
warning
Message
expected string
Message
literal
Message
failed to resolve ‘#pragma {}’ to a declaration
Message
‘#pragma
Message
push_macro
Message
pop_macro
Message
expected ‘=’ following ‘#pragma
Message
align

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘…’ qualifier on function type … has no effect and is a Clang extension. -Wignored-qualifiers

Clang enables some of the diagnostics that it controls by default. It also controls -Wignored-reference-qualifiers. Clang has 13 messages for this flag.

Code
-Wignored-qualifiers
Severity
warning
Message
‘{}’ qualifier on function type {} has no effect and is a Clang extension
Message
ARC
Message
unused
Message
__unsafe_unretained
Message
__strong
Message
__weak
Message
__autoreleasing
Message
‘{}’ qualifier on omitted return type {} has no effect

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Implicit conversion loses floating-point precision: … to …. -Wimplicit-float-conversion

Clang enables some of the diagnostics that it controls by default. It also controls -Wimplicit-int-float-conversion, -Wobjc-signed-char-bool-implicit-float-conversion. Clang has 2 messages for this flag.

Code
-Wimplicit-float-conversion
Severity
warning
Message
implicit conversion loses floating-point precision: {} to {}
Message
implicit conversion when assigning computation result loses floating-point precision: {} to {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Call to undeclared function …; ISO C99 and later do not support implicit function declarations. -Wimplicit-function-declaration

Clang enables some of the diagnostics that it controls by default. Clang has 5 messages for this flag.

Code
-Wimplicit-function-declaration
Severity
error
Message
call to undeclared function {}; ISO C99 and later do not support implicit function declarations
Message
implicitly declaring library function ‘{}’ with type {}
Message
call to undeclared library function ‘{}’ with type {}; ISO C99 and later do not support implicit function declarations
Message
use of unknown builtin {}
Message
implicit declaration of function {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Type specifier missing, defaults to ‘int’; ISO C99 and later do not support implicit int. -Wimplicit-int

Clang enables some of the diagnostics that it controls by default. Clang has 3 messages for this flag.

Code
-Wimplicit-int
Severity
error
Message
type specifier missing, defaults to ‘int’; ISO C99 and later do not support implicit int
Message
parameter {} was not declared, defaults to ‘int’; ISO C99 and later do not support implicit int
Message
type specifier missing, defaults to ‘int’

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Implicit conversion from … to … discards overflow behavior. -Wimplicit-overflow-behavior-conversion

It also controls -Wimplicit-overflow-behavior-conversion-assignment, -Wimplicit-overflow-behavior-conversion-assignment-pedantic, -Wimplicit-overflow-behavior-conversion-function-boundary, -Wimplicit-overflow-behavior-conversion-function-boundary-pedantic, -Wimplicit-overflow-behavior-conversion-pedantic.

Code
-Wimplicit-overflow-behavior-conversion
Severity
warning
Message
implicit conversion from {} to {} discards overflow behavior

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Implicit conversion when. -Wimplicit-void-ptr-cast

Clang has 13 messages for this flag.

Code
-Wimplicit-void-ptr-cast
Severity
warning
Message
implicit conversion when
Message
assigning to {} from type {}
Message
assigning to type from type
Message
passing {} to parameter of type {}
Message
passing type to parameter of type
Message
returning {} from a function with result type {}
Message
returning type from a function with result type
Message
<CLANG BUG IF YOU SEE THIS>

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘#include <filename>’ attaches the declarations to the named module ‘…’, which is not usually intended; consider moving that directive before the module declaration. -Winclude-angled-in-module-purview

Clang enables it by default.

Code
-Winclude-angled-in-module-purview
Severity
warning
Message
‘#include <filename>’ attaches the declarations to the named module ‘{}’, which is not usually intended; consider moving that directive before the module declaration

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Exception specifications of. -Wincompatible-exception-spec

Clang enables it by default. Clang has 4 messages for this flag.

Code
-Wincompatible-exception-spec
Severity
warning
Message
exception specifications of
Message
return
Message
argument
Message
target exception specification is not superset of source

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Incompatible function pointer types. -Wincompatible-function-pointer-types

Clang has 19 messages for this flag.

Code
-Wincompatible-function-pointer-types
Severity
error
Message
incompatible function pointer types
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Incompatible function pointer types. -Wincompatible-function-pointer-types-strict

Clang has 19 messages for this flag.

Code
-Wincompatible-function-pointer-types-strict
Severity
warning
Message
incompatible function pointer types
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Ms_struct may not produce Microsoft-compatible layouts for classes with base classes or virtual functions. -Wincompatible-ms-struct

Clang has 2 messages for this flag.

Code
-Wincompatible-ms-struct
Severity
error
Message
ms_struct may not produce Microsoft-compatible layouts for classes with base classes or virtual functions
Message
ms_struct may not produce Microsoft-compatible layouts with fundamental data types with sizes that aren’t a power of two

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Incompatible pointer types. -Wincompatible-pointer-types

Clang enables it by default. It also controls -Wincompatible-function-pointer-types, -Wincompatible-pointer-types-discards-overflow-behavior, -Wincompatible-pointer-types-discards-qualifiers. Clang has 19 messages for this flag.

Code
-Wincompatible-pointer-types
Severity
error
Message
incompatible pointer types
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Assigning to … from …. -Wincompatible-pointer-types-discards-overflow-behavior

Clang enables it by default. Clang has 14 messages for this flag.

Code
-Wincompatible-pointer-types-discards-overflow-behavior
Severity
warning
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}
Message
converting between types

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Assigning to … from …. -Wincompatible-pointer-types-discards-qualifiers

Clang enables it by default. Clang has 30 messages for this flag.

Code
-Wincompatible-pointer-types-discards-qualifiers
Severity
warning
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}
Message
converting between types

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Missing submodule ‘…’. -Wincomplete-umbrella

Clang enables it by default. Clang has 3 messages for this flag.

Code
-Wincomplete-umbrella
Severity
warning
Message
missing submodule ‘{}’
Message
umbrella directory ‘{}’ not found
Message
umbrella header for module ‘{}’ does not include header ‘{}’

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘objc_independent_class’ attribute may be put on a typedef only; attribute is ignored. -WIndependentClass-attribute

Clang enables it by default. Clang has 2 messages for this flag.

Code
-WIndependentClass-attribute
Severity
warning
Message
‘objc_independent_class’ attribute may be put on a typedef only; attribute is ignored
Message
‘objc_independent_class’ attribute may be put on Objective-C object pointer type only; attribute is ignored

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Initializer. -Winitializer-overrides

Clang enables it by default. Clang has 6 messages for this flag.

Code
-Winitializer-overrides
Severity
warning
Message
initializer
Message
partially
Message
initializer
Message
partially
Message
initializer
Message
partially

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Dynamic library symbol ‘…’ is. -Winstallapi-violation

Clang enables it by default. Clang has 22 messages for this flag.

Code
-Winstallapi-violation
Severity
warning
Message
dynamic library symbol ‘{}’ is
Message
weak defined
Message
thread local
Message
glob ‘{}’ did not match any header file
Message
declaration ‘{}’ is marked
Message
available
Message
unavailable
Message
not

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Incompatible integer to pointer conversion. -Wint-conversion

Clang has 38 messages for this flag.

Code
-Wint-conversion
Severity
error
Message
incompatible integer to pointer conversion
Message
assigning to {} from {}
Message
assigning to different types
Message
passing {} to parameter of type {}
Message
passing to parameter of different type
Message
returning {} from a function with result type {}
Message
returning from function with different return type
Message
converting {} to type {}

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Missing plugin argument for plugin … in …. -Winvalid-command-line-argument

Clang enables it by default. It also controls -Wignored-optimization-argument. Clang has 11 messages for this flag.

Code
-Winvalid-command-line-argument
Severity
warning
Message
missing plugin argument for plugin {} in {}
Message
missing plugin name in {}
Message
the given MCU supports {} hardware multiply, but ‘-mhwmult’ is set to {}
Message
no MCU device specified, but ‘-mhwmult’ is set to ‘auto’, assuming no hardware multiply; use ‘-mmcu’ to specify an MSP430 device, or ‘-mhwmult’ to set the hardware multiply type explicitly
Message
the given MCU does not support hardware multiply, but ‘-mhwmult’ is set to {}
Message
the object size sanitizer has no effect at -O0, but is explicitly enabled: {}
Message
optimization level ‘{}’ is not supported; using ‘{}{}’ instead
Message
feature flag ‘{}’ must start with either ‘+’ to enable the feature or ‘-’ to disable it; flag ignored

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Instance variable. -Winvalid-iboutlet

Clang enables it by default. Clang has 3 messages for this flag.

Code
-Winvalid-iboutlet
Severity
warning
Message
instance variable
Message
property
Message
IBOutletCollection properties should be copy/strong and not assign

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Coroutine … cannot be declared ‘noreturn’ as it always returns a coroutine handle. -Winvalid-noreturn

Clang enables it by default. Clang has 6 messages for this flag.

Code
-Winvalid-noreturn
Severity
warning
Message
coroutine {} cannot be declared ‘noreturn’ as it always returns a coroutine handle
Message
function {} declared ‘noreturn’ should not return
Message
function
Message
block
Message
lambda
Message
coroutine

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

The message. -Winvalid-static-assert-message

Clang has 4 messages for this flag.

Code
-Winvalid-static-assert-message
Severity
warning
Message
the message
Message
the expression
Message
this static assertion
Message
this asm operand

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Binding type ‘b’ only applies to constant buffers. The ‘bool constant’ binding type is no longer supported. -Wlegacy-constant-register-binding

Clang enables it by default. Clang has 14 messages for this flag.

Code
-Wlegacy-constant-register-binding
Severity
error
Message
binding type ‘b’ only applies to constant buffers. The ‘bool constant’ binding type is no longer supported
Message
binding type ‘i’ ignored. The ‘integer constant’ binding type is no longer supported
Message
binding type ‘c’ ignored in buffer declaration. Did you mean ‘packoffset’?
Message
binding type ‘
Message
t
Message
u
Message
b
Message
s

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Parameter in cross-TU function should be marked [[clang::lifetimebound]]. -Wlifetime-safety-cross-tu-suggestions

It also controls -Wlifetime-safety-cross-tu-constructor-suggestions. Clang has 2 messages for this flag.

Code
-Wlifetime-safety-cross-tu-suggestions
Severity
warning
Message
parameter in cross-TU function should be marked [[clang::lifetimebound]]
Message
implicit this in cross-TU function should be marked [[clang::lifetimebound]]

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Stack memory associated with … may escape to the … which will dangle. This could be a false positive as the field was captured by a lambda and may have been reset before escaping. -Wlifetime-safety-dangling-field-lambda-capture

Code
-Wlifetime-safety-dangling-field-lambda-capture
Severity
warning
Message
stack memory associated with {} may escape to the {} which will dangle. This could be a false positive as the field was captured by a lambda and may have been reset before escaping

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Stack memory associated with … may escape to the … which will dangle. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue. -Wlifetime-safety-dangling-field-moved

Code
-Wlifetime-safety-dangling-field-moved
Severity
warning
Message
stack memory associated with {} may escape to the {} which will dangle. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Stack memory associated with … may escape to the … which will dangle. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue. -Wlifetime-safety-dangling-global-moved

Code
-Wlifetime-safety-dangling-global-moved
Severity
warning
Message
stack memory associated with {} may escape to the {} which will dangle. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

A group of warnings. -Wlifetime-safety-experimental

It also controls -Wlifetime-safety-experimental-destructor-use, -Wlifetime-safety-experimental-field-origin-escape, -Wlifetime-safety-experimental-invalidation.

Code
-Wlifetime-safety-experimental
Severity
warning

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

‘lifetimebound’ attribute has no effect on parameter of type …. The attribute only applies to reference types, pointer types, and non-owner record types. -Wlifetime-safety-inapplicable-lifetimebound

Code
-Wlifetime-safety-inapplicable-lifetimebound
Severity
warning
Message
‘lifetimebound’ attribute has no effect on parameter of type {}. The attribute only applies to reference types, pointer types, and non-owner record types

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Parameter in intra-TU function should be marked [[clang::lifetimebound]]. -Wlifetime-safety-intra-tu-suggestions

It also controls -Wlifetime-safety-intra-tu-constructor-suggestions. Clang has 2 messages for this flag.

Code
-Wlifetime-safety-intra-tu-suggestions
Severity
warning
Message
parameter in intra-TU function should be marked [[clang::lifetimebound]]
Message
implicit this in intra-TU function should be marked [[clang::lifetimebound]]

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

A group of warnings. -Wlifetime-safety-misplaced-lifetimebound

It also controls -Wlifetime-safety-cross-tu-misplaced-lifetimebound, -Wlifetime-safety-intra-tu-misplaced-lifetimebound.

Code
-Wlifetime-safety-misplaced-lifetimebound
Severity
warning

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

A group of warnings. -Wlifetime-safety-permissive

It also controls -Wlifetime-safety-dangling-field, -Wlifetime-safety-dangling-global, -Wlifetime-safety-return-stack-addr, -Wlifetime-safety-use-after-free, -Wlifetime-safety-use-after-scope.

Code
-Wlifetime-safety-permissive
Severity
warning

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

Stack memory associated with … may be returned later. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue. -Wlifetime-safety-return-stack-addr-moved

Code
-Wlifetime-safety-return-stack-addr-moved
Severity
warning
Message
stack memory associated with {} may be returned later. This could be a false positive as the storage may have been moved. Consider moving first and then aliasing later to resolve the issue

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.

A group of warnings. -Wlifetime-safety-strict

It also controls -Wlifetime-safety-dangling-field-lambda-capture, -Wlifetime-safety-dangling-field-moved, -Wlifetime-safety-dangling-global-in-main, -Wlifetime-safety-dangling-global-moved, -Wlifetime-safety-permissive, -Wlifetime-safety-return-stack-addr-moved, -Wlifetime-safety-use-after-scope-moved.

Code
-Wlifetime-safety-strict
Severity
warning

Source: clang.llvm.org. JSON record. This entry is a card. Help write this page.