Programming Search⌘K

C errors and diagnostics, page 5 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.

A group of warnings. -Wopenmp

Clang enables some of the diagnostics that it controls by default. It also controls -Wopenmp-51-extensions, -Wopenmp-clauses, -Wopenmp-extensions, -Wopenmp-future, -Wopenmp-loop-form, -Wopenmp-mapping, -Wopenmp-target, -Wopenmp-target-exception, -Wsource-uses-openmp.

Code
-Wopenmp
Severity
warning

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

Aligned clause will be ignored because the requested alignment is not a power of 2. -Wopenmp-clauses

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

Code
-Wopenmp-clauses
Severity
warning
Message
aligned clause will be ignored because the requested alignment is not a power of 2
Message
allocator with the ‘thread’ trait access has unspecified behavior on ‘{}’ directive
Message
the context property ‘{}’ is not valid for the context selector ‘{}’ and the context set ‘{}’; property ignored
Message
the context selector ‘{}’ in the context set ‘{}’ cannot have a score ({}); score ignored
Message
the context selector ‘{}’ is not valid for the context set ‘{}’; selector ignored
Message
the context selector ‘{}’ in context set ‘{}’ requires a context property defined in parentheses; selector ignored
Message
the context
Message
set

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

Initialization clause of OpenMP for loop is not in canonical form (‘var = init’ or ‘T var = init’). -Wopenmp-loop-form

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

Code
-Wopenmp-loop-form
Severity
warning
Message
initialization clause of OpenMP for loop is not in canonical form (‘var = init’ or ‘T var = init’)
Message
OpenMP loop iteration variable cannot have more than 64 bits size and will be narrowed

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

OpenMP offloading target ‘…’ is similar to target ‘…’ already specified; will be ignored. -Wopenmp-target

Clang enables it by default. It also controls -Wopenmp-mapping. Clang has 4 messages for this flag.

Code
-Wopenmp-target
Severity
warning
Message
OpenMP offloading target ‘{}’ is similar to target ‘{}’ already specified; will be ignored
Message
declaration marked as declare target after first use, it may lead to incorrect results
Message
‘device_type(nohost)’ is not yet supported with ‘local’ clause; treating as ‘device_type(any)’
Message
declaration is not declared in any declare target region

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

Invalid argument ‘…’ not allowed with ‘…’. -Woption-ignored

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

Code
-Woption-ignored
Severity
warning
Message
invalid argument ‘{}’ not allowed with ‘{}’
Message
option ‘-ffine-grained-bitfield-accesses’ cannot be enabled together with a sanitizer; flag ignored
Message
-fjmc works only for ELF; option ignored
Message
‘{}’ is not valid for Fortran
Message
{} requires debug info. Use {} or debug options that enable debugger’s stepping function; option ignored
Message
ignoring ‘{}’ as it conflicts with that implied by ‘{}’ ({})
Message
‘{}’ does not support ‘-{}’; flag ignored
Message
‘{}’ does not support ‘-moutline’; flag ignored

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

… attribute is ignored because it is not enabled; pass -Xclang -fexperimental-overflow-behavior-types. -Woverflow-behavior-attribute-ignored

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

Code
-Woverflow-behavior-attribute-ignored
Severity
warning
Message
{} attribute is ignored because it is not enabled; pass -Xclang -fexperimental-overflow-behavior-types
Message
‘{}’ specifier is ignored because overflow behavior types are not enabled; pass -Xclang -fexperimental-overflow-behavior-types
Message
redundant overflow behavior specification; both specifier and attribute specify ‘{}’

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

Conflicting distributed object modifiers on parameter type in declaration of …. -Woverriding-method-mismatch

Clang has 9 messages for this flag.

Code
-Woverriding-method-mismatch
Severity
warning
Message
conflicting distributed object modifiers on parameter type in declaration of {}
Message
conflicting parameter types in declaration of {}
Message
: {} vs {}
Message
conflicting distributed object modifiers on return type in declaration of {}
Message
conflicting return type in declaration of {}
Message
: {} vs {}
Message
conflicting variadic declaration of method and its implementation
Message
conflicting parameter types in declaration of {}: {} vs {}

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

Padding. -Wpadded

It also controls -Wpadded-bitfield. Clang has 18 messages for this flag.

Code
-Wpadded
Severity
warning
Message
padding
Message
struct
Message
interface
Message
class
Message
byte
Message
bit
Message
s
Message
padding

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

Padding. -Wpadded-bitfield

Clang has 14 messages for this flag.

Code
-Wpadded-bitfield
Severity
warning
Message
padding
Message
struct
Message
interface
Message
class
Message
byte
Message
bit
Message
s
Message
padding

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

Comparison in fold expression would evaluate to ‘(X … Y) … Z’ which does not behave the same as a mathematical expression. -Wparentheses

Clang enables some of the diagnostics that it controls by default. It also controls -Wbitwise-conditional-parentheses, -Wbitwise-op-parentheses, -Wdangling-else, -Wlogical-not-parentheses, -Wlogical-op-parentheses, -Woverloaded-shift-op-parentheses, -Wparentheses-equality, -Wshift-op-parentheses. Clang has 5 messages for this flag.

Code
-Wparentheses
Severity
error
Message
comparison in fold expression would evaluate to ‘(X {} Y) {} Z’ which does not behave the same as a mathematical expression
Message
using the result of an assignment as a condition without parentheses
Message
chained comparison ‘X {} Y {} Z’ does not behave the same as a mathematical expression
Message
{} has lower precedence than {}; {} will be evaluated first
Message
operator ‘?:’ has lower precedence than ‘{}’; ‘{}’ will be evaluated first

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

‘alignof’ on an incomplete array type is a C2y extension. -Wpedantic

It also controls -Wattribute-preprocessor-tokens, -Wauto-decl-extensions, -Wbit-int-extension, -Wc++11-extra-semi, -Wc++11-long-long, -Wc++14-attribute-extensions, -Wc++14-binary-literal, -Wc++17-attribute-extensions, -Wc++20-attribute-extensions, -Wc++20-designator, -Wc11-extensions, -Wcomplex-component-init and 51 more. Clang has 164 messages for this flag.

Code
-Wpedantic
Severity
warning
Message
‘alignof’ on an incomplete array type is a C2y extension
Message
use of incomplete type {} in a ‘_Generic’ association is a C2y extension
Message
passing a type argument as the first operand to ‘_Generic’ is a C2y extension
Message
imaginary constants are a C2y extension
Message
‘
Message
–
Message
++
Message
[[]] attributes are a C23 extension

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

… is a core feature in. -Wpedantic-core-features

Clang has 4 messages for this flag.

Code
-Wpedantic-core-features
Severity
warning
Message
{} is a core feature in
Message
OpenCL C
Message
C++ for OpenCL
Message
OpenCL extension {} is core feature or supported optional core feature - ignoring

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

Function. -Wperf-constraint-implies-noexcept

Clang has 5 messages for this flag.

Code
-Wperf-constraint-implies-noexcept
Severity
warning
Message
function
Message
constructor
Message
destructor
Message
lambda
Message
block

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

Unsupported MC/DC boolean expression; number of conditions (…) exceeds max (…). Expression will not be covered. -Wpgo-coverage

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

Code
-Wpgo-coverage
Severity
warning
Message
unsupported MC/DC boolean expression; number of conditions ({}) exceeds max ({}). Expression will not be covered
Message
unsupported MC/DC boolean expression; number of test vectors ({}) exceeds max ({}). Expression will not be covered

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

Invalid application of ‘…’ to a function type. -Wpointer-arith

Clang enables some of the diagnostics that it controls by default. It also controls -Wgnu-pointer-arith. Clang has 3 messages for this flag.

Code
-Wpointer-arith
Severity
warning
Message
invalid application of ‘{}’ to a function type
Message
invalid application of ‘{}’ to a void type
Message
subtraction of pointers to type {} of zero size has undefined behavior

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

Nonnull. -Wpointer-bool-conversion

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

Code
-Wpointer-bool-conversion
Severity
warning
Message
nonnull
Message
function call
Message
parameter
Message
address of
Message
‘{}’
Message
function ‘{}’
Message
array ‘{}’
Message
lambda function pointer conversion operator

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

Assigning to … from …. -Wpointer-sign

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

Code
-Wpointer-sign
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.

The current #pragma pack alignment value is modified in the included file. -Wpragma-pack

Clang enables some of the diagnostics that it controls by default. It also controls -Wpragma-pack-suspicious-include. Clang has 2 messages for this flag.

Code
-Wpragma-pack
Severity
warning
Message
the current #pragma pack alignment value is modified in the included file
Message
unterminated ‘#pragma pack (push, …)’ at end of file

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

Setting the floating point evaluation method to `source` on a target without SSE is not supported. -Wpragmas

Clang enables some of the diagnostics that it controls by default. It also controls -Wignored-pragmas, -Wpragma-clang-attribute, -Wpragma-pack, -Wunknown-pragmas. Clang has 4 messages for this flag.

Code
-Wpragmas
Severity
warning
Message
setting the floating point evaluation method to `source` on a target without SSE is not supported
Message
#pragma redefine_extname is applicable to external C declarations only; not applied to
Message
function
Message
variable

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

Defaulted postfix increment and decrement operators are incompatible with C++ standards before C++2d. -Wpre-c++2d-compat

Clang has 3 messages for this flag.

Code
-Wpre-c++2d-compat
Severity
warning
Message
defaulted postfix increment and decrement operators are incompatible with C++ standards before C++2d
Message
mathematical notation character {} in an identifier is incompatible with C++ standards before C++2d
Message
pack indexing for template names is incompatible with C++ standards before C++2d

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

Multiple return statements in constexpr function is incompatible with C++ standards before C++14. -Wpre-c++14-compat

Clang has 17 messages for this flag.

Code
-Wpre-c++14-compat
Severity
warning
Message
multiple return statements in constexpr function is incompatible with C++ standards before C++14
Message
variable declaration in a constexpr
Message
function
Message
constructor
Message
type definition in a constexpr
Message
function
Message
constructor
Message
use of this statement in a constexpr

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

Constexpr if is incompatible with C++ standards before C++17. -Wpre-c++17-compat

Clang has 20 messages for this flag.

Code
-Wpre-c++17-compat
Severity
warning
Message
constexpr if is incompatible with C++ standards before C++17
Message
‘constexpr’ on lambda expressions is incompatible with C++ standards before C++17
Message
‘static_assert’ with no message is incompatible with C++ standards before C++17
Message
structured binding declarations are incompatible with C++ standards before C++17
Message
pack fold expression is incompatible with C++ standards before C++17
Message
‘begin’ and ‘end’ returning different types ({} and {}) is incompatible with C++ standards before C++17
Message
‘
Message
if

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

Use of function template name with no prior declaration in function call with explicit template arguments is incompatible with C++ standards before C++20. -Wpre-c++20-compat

Clang has 45 messages for this flag.

Code
-Wpre-c++20-compat
Severity
warning
Message
use of function template name with no prior declaration in function call with explicit template arguments is incompatible with C++ standards before C++20
Message
‘auto’ parameters are incompatible with C++ standards before C++20
Message
default member initializer for bit-field is incompatible with C++ standards before C++20
Message
captured structured bindings are incompatible with C++ standards before C++20
Message
constexpr constructor that does not initialize all members is incompatible with C++ standards before C++20
Message
function try block in constexpr
Message
function
Message
constructor

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

Designated initializers are incompatible with C++ standards before C++20. -Wpre-c++20-compat-pedantic

It also controls -Wpre-c++20-compat. Clang has 2 messages for this flag.

Code
-Wpre-c++20-compat-pedantic
Severity
warning
Message
designated initializers are incompatible with C++ standards before C++20
Message
invoking a pointer to a ‘const &’ member function on an rvalue is incompatible with C++ standards before C++20

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

Alias declaration in this context is incompatible with C++ standards before C++23. -Wpre-c++23-compat

Clang has 31 messages for this flag.

Code
-Wpre-c++23-compat
Severity
warning
Message
alias declaration in this context is incompatible with C++ standards before C++23
Message
‘auto’ as a functional-style cast is incompatible with C++ standards before C++23
Message
consteval if is incompatible with C++ standards before C++23
Message
definition of a
Message
static
Message
thread_local
Message
function
Message
constructor

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

An attribute specifier sequence attached to a structured binding declaration is incompatible with C++ standards before C++2c. -Wpre-c++26-compat

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

Code
-Wpre-c++26-compat
Severity
warning
Message
an attribute specifier sequence attached to a structured binding declaration is incompatible with C++ standards before C++2c
Message
structured binding packs are incompatible with C++ standards before C++2c
Message
#embed is incompatible with C++ standards before C++2c
Message
structured binding declaration in a condition is incompatible with C++ standards before C++2c
Message
pack indexing is incompatible with C++ standards before C++2c
Message
placeholder variables are incompatible with C++ standards before C++2c
Message
‘static_assert’ with a user-generated message is incompatible with C++ standards before C++2c
Message
variadic ‘friend’ declarations are incompatible with C++ standards before C++2c

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

‘= delete’ with a message is incompatible with C++ standards before C++2c. -Wpre-c++26-compat-pedantic

Clang enables some of the diagnostics that it controls by default. It also controls -Wpre-c++26-compat. Clang has 2 messages for this flag.

Code
-Wpre-c++26-compat-pedantic
Severity
warning
Message
‘= delete’ with a message is incompatible with C++ standards before C++2c
Message
‘{}’ in a raw string literal delimiter is incompatible with C++ standards before C++2c

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

‘. -Wpre-c2y-compat

Clang has 11 messages for this flag.

Code
-Wpre-c2y-compat
Severity
warning
Message
‘
Message
if
Message
switch
Message
using static
Message
function
Message
variable
Message
‘{}’ is incompatible with C standards before C2y
Message
octal integer literals are incompatible with standards before C2y

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

‘alignof’ on an incomplete array type is incompatible with C standards before C2y. -Wpre-c2y-compat-pedantic

It also controls -Wpre-c2y-compat. Clang has 7 messages for this flag.

Code
-Wpre-c2y-compat-pedantic
Severity
warning
Message
‘alignof’ on an incomplete array type is incompatible with C standards before C2y
Message
use of incomplete type {} in a ‘_Generic’ association is incompatible with C standards before C2y
Message
passing a type argument as the first operand to ‘_Generic’ is incompatible with C standards before C2y
Message
imaginary constants are incompatible with C standards before C2y
Message
‘
Message
–
Message
++

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

Use of a ‘#. -Wpre-c23-compat

It also controls -Wvariadic-macro-arguments-omitted. Clang has 21 messages for this flag.

Code
-Wpre-c23-compat
Severity
warning
Message
use of a ‘#
Message
<BUG IF SEEN>
Message
elifdef
Message
elifndef
Message
#embed is incompatible with C standards before C23
Message
label at end of compound statement is incompatible with C standards before C23
Message
‘_Static_assert’ with no message is incompatible with C standards before C23
Message
‘…’ as the only parameter of a function is incompatible with C standards before C23

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

[[]] attributes are incompatible with C standards before C23. -Wpre-c23-compat-pedantic

It also controls -Wpre-c23-compat. Clang has 6 messages for this flag.

Code
-Wpre-c23-compat-pedantic
Severity
warning
Message
[[]] attributes are incompatible with C standards before C23
Message
enumeration types with a fixed underlying type are incompatible with C standards before C23
Message
label followed by a declaration is incompatible with C standards before C23
Message
declaration of non-local variable in ‘for’ loop is incompatible with C standards before C23
Message
non-variable declaration in ‘for’ loop is incompatible with C standards before C23
Message
‘restrict’ qualifier on an array of pointers is incompatible with C standards before C23

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

Bit-field … is not wide enough to store all enumerators of preferred type …. -Wpreferred-type-bitfield-enum-conversion

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

Code
-Wpreferred-type-bitfield-enum-conversion
Severity
warning
Message
bit-field {} is not wide enough to store all enumerators of preferred type {}
Message
signed bit-field {} needs an extra bit to represent the largest positive enumerators of preferred type {}
Message
assigning value of preferred signed enum type {} to unsigned bit-field {}; negative enumerators of enum {} will be converted to positive values

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

Expected canonical name for private module ‘…’. -Wprivate-module

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

Code
-Wprivate-module
Severity
warning
Message
expected canonical name for private module ‘{}’
Message
private submodule ‘{}’ in private module map, expected top-level module
Message
module ‘{}’ already re-exported as ‘{}’
Message
no submodule named {} in module ‘{}’; using top level ‘{}’

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

Property attribute in class extension does not match the primary class. -Wproperty-attribute-mismatch

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

Code
-Wproperty-attribute-mismatch
Severity
warning
Message
property attribute in class extension does not match the primary class
Message
‘{}’ attribute on property {} does not match the property inherited from {}
Message
getter name mismatch between property redeclaration ({}) and its original declaration ({})
Message
attribute ‘readonly’ of property {} restricts attribute ‘readwrite’ of property inherited from {}

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

Property. -Wprotocol-property-synthesis-ambiguity

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

Code
-Wprotocol-property-synthesis-ambiguity
Severity
warning
Message
property
Message
of type {}
Message
with attribute ‘{}’
Message
without attribute ‘{}’
Message
with getter {}
Message
with setter {}

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

Loop variable …. -Wrange-loop-construct

Clang has 4 messages for this flag.

Code
-Wrange-loop-construct
Severity
warning
Message
loop variable {}
Message
of type {} binds to a temporary constructed from type {}
Message
binds to a temporary constructed from a different type
Message
loop variable {} creates a copy from type {}

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

The implicit output of reduced BMI may be overrided by the output file specified by ‘–precompile’. please consider use ‘-fmodule-output=’ to specify the output file for reduced BMI explicitly. -Wreduced-bmi-output-overrided

Clang enables it by default.

Code
-Wreduced-bmi-output-overrided
Severity
warning
Message
the implicit output of reduced BMI may be overrided by the output file specified by ‘–precompile’. please consider use ‘-fmodule-output=’ to specify the output file for reduced BMI explicitly

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

‘reinterpret_cast’. -Wreinterpret-base-class

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

Code
-Wreinterpret-base-class
Severity
warning
Message
‘reinterpret_cast’
Message
from
Message
to
Message
to
Message
from
Message
virtual base
Message
base at non-zero offset

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

Folding constant expression involving cast that performs the conversions of a reinterpret_cast is a Microsoft extension. -Wrelaxed-constant-fold

Clang has 2 messages for this flag.

Code
-Wrelaxed-constant-fold
Severity
warning
Message
folding constant expression involving cast that performs the conversions of a reinterpret_cast is a Microsoft extension
Message
folding constant expression that takes field address of null pointer is a Microsoft extension

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

Field. -Wreorder-ctor

Clang has 5 messages for this flag.

Code
-Wreorder-ctor
Severity
warning
Message
field
Message
base class
Message
field
Message
base
Message
initializer order does not match the declaration order

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

‘long long’ is a reserved data type in OpenCL C. -Wreserved-identifier

Clang enables some of the diagnostics that it controls by default. It also controls -Wreserved-attribute-identifier, -Wreserved-macro-identifier, -Wreserved-module-identifier, -Wuser-defined-literals. Clang has 8 messages for this flag.

Code
-Wreserved-identifier
Severity
warning
Message
‘long long’ is a reserved data type in OpenCL C
Message
identifier {} is reserved because
Message
<ERROR>
Message
it starts with ‘_’ at global scope
Message
it starts with ‘_’ and has C language linkage
Message
it starts with ‘__’
Message
it starts with ‘_’ followed by a capital letter
Message
it contains ‘__’

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

Invalid suffix on literal; C++11 requires a space between literal and identifier. -Wreserved-user-defined-literal

Clang enables some of the diagnostics that it controls by default. It also controls -Wc++11-compat-reserved-user-defined-literal. Clang has 2 messages for this flag.

Code
-Wreserved-user-defined-literal
Severity
warning
Message
invalid suffix on literal; C++11 requires a space between literal and identifier
Message
invalid suffix on literal; C++11 requires a space between literal and identifier

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

Void function. -Wreturn-mismatch

Clang has 10 messages for this flag.

Code
-Wreturn-mismatch
Severity
error
Message
void function
Message
void method
Message
constructor
Message
destructor
Message
non-void
Message
function
Message
method
Message
non-void

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

Passing. -Wreturn-stack-address

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

Code
-Wreturn-stack-address
Severity
warning
Message
passing
Message
address of
Message
reference to
Message
returning address of label, which is local
Message
returning
Message
address of
Message
reference to
Message
address of

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

Non-void. -Wreturn-type

Clang enables it by default. It also controls -Wreturn-mismatch, -Wreturn-type-c-linkage. Clang has 6 messages for this flag.

Code
-Wreturn-type
Severity
warning
Message
non-void
Message
function
Message
block
Message
lambda
Message
coroutine
Message
in all control paths

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

… has C-linkage specified, but returns user-defined type … which is incompatible with C. -Wreturn-type-c-linkage

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

Code
-Wreturn-type-c-linkage
Severity
warning
Message
{} has C-linkage specified, but returns user-defined type {} which is incompatible with C
Message
{} has C-linkage specified, but returns incomplete type {} which could be incompatible with C

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

No summary extractor. -Wscalable-static-analysis-framework

Clang has 22 messages for this flag.

Code
-Wscalable-static-analysis-framework
Severity
error
Message
no summary extractor
Message
s
Message
was
Message
were
Message
failed to parse the value of ‘–ssaf-tu-summary-file={}’ the value must follow the ‘<path>.<format>’ pattern
Message
unknown output summary file format ‘{}’ specified by ‘–ssaf-tu-summary-file={}’
Message
must enable some summary extractors using the ‘–ssaf-extract-summaries=’ option
Message
option ‘

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

Missing sentinel in. -Wsentinel

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

Code
-Wsentinel
Severity
warning
Message
missing sentinel in
Message
function call
Message
method dispatch
Message
block call
Message
not enough variable arguments in {} declaration to fit a sentinel

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

Declaration shadows a. -Wshadow

Clang enables some of the diagnostics that it controls by default. It also controls -Wshadow-field-in-constructor-modified, -Wshadow-ivar. Clang has 8 messages for this flag.

Code
-Wshadow
Severity
warning
Message
declaration shadows a
Message
local variable
Message
variable in {}
Message
static data member of {}
Message
field of {}
Message
typedef in {}
Message
type alias in {}
Message
structured binding

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

Declaration shadows a. -Wshadow-uncaptured-local

Clang has 8 messages for this flag.

Code
-Wshadow-uncaptured-local
Severity
warning
Message
declaration shadows a
Message
local variable
Message
variable in {}
Message
static data member of {}
Message
field of {}
Message
typedef in {}
Message
type alias in {}
Message
structured binding

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

The clause simdlen(1) has no effect when targeting aarch64. -Wsimdlen

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

Code
-Wsimdlen
Severity
warning
Message
the clause simdlen(1) has no effect when targeting aarch64
Message
the clause simdlen must fit the {}-bit lanes in the architectural constraints for SVE (min is 128-bit, max is 2048-bit, by steps of 128-bit)
Message
the value specified in simdlen must be a power of 2 when targeting Advanced SIMD

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

‘…’ call operates on objects of type … while the size is based on a different type …. -Wsizeof-pointer-memaccess

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

Code
-Wsizeof-pointer-memaccess
Severity
warning
Message
‘{}’ call operates on objects of type {} while the size is based on a different type {}
Message
argument to ‘sizeof’ in {} call is the same pointer type {} as the
Message
destination
Message
source

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

Variable … is. -Wsometimes-uninitialized

Clang has 15 messages for this flag.

Code
-Wsometimes-uninitialized
Severity
warning
Message
variable {} is
Message
used
Message
captured
Message
‘{}’ condition is
Message
true
Message
false
Message
‘{}’ loop
Message
is entered

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

OpenACC construct ‘routine’ with implicit function not yet implemented, pragma ignored. -Wsource-uses-openacc

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

Code
-Wsource-uses-openacc
Severity
warning
Message
OpenACC construct ‘routine’ with implicit function not yet implemented, pragma ignored
Message
OpenACC directives will result in no runtime behavior; use -fclangir to enable runtime effect
Message
unexpected ‘#pragma acc …’ in program

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

‘#pragma omp declare variant’ cannot be applied to the function that was defined already; the original function might be used. -Wsource-uses-openmp

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

Code
-Wsource-uses-openmp
Severity
warning
Message
‘#pragma omp declare variant’ cannot be applied to the function that was defined already; the original function might be used
Message
‘#pragma omp declare variant’ cannot be applied for function after first usage; the original function might be used
Message
variant function in ‘#pragma omp declare variant’ is itself marked as ‘#pragma omp declare variant’
Message
score expressions in the OpenMP context selector need to be constant; {} is not and will be ignored
Message
OpenMP only allows an ordered construct with the simd clause nested in a simd construct
Message
expected ‘#pragma omp end declare target’ at end of file to match ‘#pragma omp {}’
Message
unexpected ‘#pragma omp …’ in program
Message
isa trait ‘{}’ is not known to the current target; verify the spelling or consider restricting the context selector with the ‘arch’ selector further

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

Using static. -Wstatic-in-inline

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

Code
-Wstatic-in-inline
Severity
warning
Message
using static
Message
function
Message
variable
Message
using static
Message
function
Message
variable

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

Ignoring ‘. -Wstatic-inline-explicit-instantiation

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

Code
-Wstatic-inline-explicit-instantiation
Severity
warning
Message
ignoring ‘
Message
static
Message
inline

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