Skip to content

Repo sync for protected branch #5210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
06284c6
Learn Editor: Update compiler-fatal-errors-c999-through-c1999.md
Rastaban Feb 21, 2025
150c71b
Learn Editor: Update compiler-fatal-errors-c999-through-c1999.md
Rastaban Feb 21, 2025
8bad331
Learn Editor: Update compiler-fatal-errors-c999-through-c1999.md
Rastaban Feb 21, 2025
80455fc
Learn Editor: Update compiler-errors-c2001-through-c2099.md
Rastaban Feb 21, 2025
39d4a48
Learn Editor: Update compiler-errors-c2100-through-c2199.md
Rastaban Feb 21, 2025
dd95706
Merge branch 'main' into docs-editor/compiler-fatal-errors-c999-thr-1…
Rastaban Feb 21, 2025
4f8564f
Learn Editor: Update compiler-errors-c2200-through-c2299.md
Rastaban Feb 24, 2025
85ffce6
Learn Editor: Update compiler-errors-c2300-through-c2399.md
Rastaban Feb 24, 2025
e8396cb
Learn Editor: Update compiler-errors-c2400-through-c2499.md
Rastaban Feb 24, 2025
6ec0265
Learn Editor: Update compiler-errors-c2500-through-c2599.md
Rastaban Feb 24, 2025
1e20b8a
Learn Editor: Update compiler-errors-c2600-through-c2699.md
Rastaban Feb 24, 2025
5f07036
Learn Editor: Update compiler-errors-c2700-through-c2799.md
Rastaban Feb 24, 2025
a88efe2
Learn Editor: Update compiler-errors-c2800-through-c2899.md
Rastaban Feb 24, 2025
4f6b007
Learn Editor: Update compiler-errors-c2900-through-c3499.md
Rastaban Feb 24, 2025
0ade68d
Learn Editor: Update compiler-errors-c3000-through-c3099.md
Rastaban Feb 24, 2025
7d530d5
Learn Editor: Update compiler-errors-c3100-through-c3199.md
Rastaban Feb 24, 2025
8a08963
Learn Editor: Update compiler-errors-c3200-through-c3299.md
Rastaban Feb 24, 2025
25aa1d2
Learn Editor: Update compiler-errors-c3400-through-c3499.md
Rastaban Feb 24, 2025
1903359
Learn Editor: Update compiler-errors-c3300-through-c3399.md
Rastaban Feb 24, 2025
6cb2fc3
Learn Editor: Update compiler-errors-c3500-through-c3999.md
Rastaban Feb 24, 2025
d787655
Learn Editor: Update compiler-errors-c3500-through-c3999.md
Rastaban Feb 24, 2025
82a2788
Learn Editor: Update compiler-errors-c7500-through-c7999.md
Rastaban Feb 24, 2025
5e13c40
Learn Editor: Update compiler-errors-c7500-through-c7999.md
Rastaban Feb 25, 2025
871dffd
Learn Editor: Update compiler-errors-c7500-through-c7999.md
Rastaban Feb 25, 2025
f01eacd
Fix formatting of compiler error C2278 description
Rastaban Feb 25, 2025
5d58c42
Fix formatting for compiler error C3339 description
Rastaban Feb 25, 2025
9fdd587
Merge pull request #5798 from Rastaban/docs-editor/compiler-fatal-err…
JillGrant615 Feb 25, 2025
ce45e57
fix uuf bug
TylerMSFT Feb 26, 2025
b79a67b
wording
TylerMSFT Feb 26, 2025
24bb23c
Merge pull request #5805 from TylerMSFT/c6993
JillGrant615 Feb 26, 2025
c9b9924
Merge pull request #5804 from MicrosoftDocs/FromPublicMasterBranch
Albertyang0 Feb 26, 2025
bdb22f6
Merge pull request #5806 from MicrosoftDocs/main
Albertyang0 Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/code-quality/c6993.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
description: "Learn more about: Warning C6993"
title: Warning C6993
ms.date: 11/04/2016
ms.date: 2/25/2025
f1_keywords: ["C6993"]
ms.assetid: 7ea93bc6-b934-4b6b-b71a-a56e765fb4cd
---
# Warning C6993

> Code analysis ignores OpenMP constructs; analyzing single-threaded code

This warning indicates that the Code Analyzer has encountered Open MP pragmas that it can't analyze.
This warning indicates that the static analysis tools don't support Open MP pragmas. The static analysis tools could generate incorrect results because they assume the code is single-threaded, not multi-threaded.

Your code doesn't necessarily need to be 'fixed' to resolve this diagnostic because this warning indicates what the toolset supports and not an issue with your code.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ The articles in this section of the documentation explain a subset of the error
| [Compiler error C2003](compiler-error-c2003.md) | expected 'defined id' |
| [Compiler error C2004](compiler-error-c2004.md) | expected 'defined(id)' |
| [Compiler error C2005](compiler-error-c2005.md) | #line expected a line number, found '*token*' |
| [Compiler error C2006](compiler-error-c2006.md) | '*directive*': expected a filename, found '*token*' |
| [Compiler error C2006](compiler-error-c2006.md) | '*directive*': expected `"FILENAME"` or `<FILENAME>` |
| [Compiler error C2007](compiler-error-c2007.md) | #define syntax |
| [Compiler error C2008](compiler-error-c2008.md) | '*character*': unexpected in macro definition |
| [Compiler error C2009](compiler-error-c2009.md) | reuse of macro formal '*identifier*' |
| [Compiler error C2009](compiler-error-c2009.md) | cannot reuse macro parameter name '*identifier*' |
| [Compiler error C2010](compiler-error-c2010.md) | '*character*': unexpected in macro formal parameter list |
| [Compiler error C2011](compiler-error-c2011.md) | '*identifier*': '*type*' type redefinition |
| [Compiler error C2012](compiler-error-c2012.md) | missing name following '<' |
| [Compiler error C2013](compiler-error-c2013.md) | missing '>' |
| [Compiler error C2013](compiler-error-c2013.md) | expected a '*token*' |
| [Compiler error C2014](compiler-error-c2014.md) | preprocessor command must start as first nonwhite space |
| [Compiler error C2015](compiler-error-c2015.md) | too many characters in constant |
| [Compiler error C2016](compiler-error-c2016.md) | C requires that a struct or union has at least one member |
Expand Down Expand Up @@ -89,7 +89,7 @@ The articles in this section of the documentation explain a subset of the error
| [Compiler error C2072](compiler-error-c2072.md) | '*identifier*': initialization of a function |
| [Compiler error C2073](compiler-error-c2073.md) | **(Obsolete)** '*identifier*': elements of partially initialized array must have a default constructor |
| [Compiler error C2074](compiler-error-c2074.md) | '*identifier*': '*type*' initialization requires a brace-enclosed initializer list |
| [Compiler error C2075](compiler-error-c2075.md) | '*identifier*': array initialization requires a brace-enclosed initializer list |
| [Compiler error C2075](compiler-error-c2075.md) | '*identifier*': initialization requires a brace-enclosed initializer list |
| [Compiler error C2076](compiler-error-c2076.md) | a brace-enclosed initializer list cannot be used in a new-expression whose type contains '*type*' |
| [Compiler error C2077](compiler-error-c2077.md) | non-scalar field initializer '*identifier*' |
| [Compiler error C2078](compiler-error-c2078.md) | too many initializers |
Expand All @@ -102,11 +102,11 @@ The articles in this section of the documentation explain a subset of the error
| [Compiler error C2085](compiler-error-c2085.md) | '*identifier*': not in formal parameter list |
| [Compiler error C2086](compiler-error-c2086.md) | '*identifier*': redefinition |
| [Compiler error C2087](compiler-error-c2087.md) | '*identifier*': missing subscript |
| [Compiler error C2088](compiler-error-c2088.md) | '*operator*': illegal for struct/class/union |
| [Compiler error C2088](compiler-error-c2088.md) | built-in operator '*operator*' cannot be applied to an operand of type '*class type*' |
| [Compiler error C2089](compiler-error-c2089.md) | '*identifier*': '*type*' too large |
| [Compiler error C2090](compiler-error-c2090.md) | function returns array |
| [Compiler error C2091](compiler-error-c2091.md) | function returns function |
| [Compiler error C2092](compiler-error-c2092.md) | '*identifier*' array element type cannot be function |
| [Compiler error C2092](compiler-error-c2092.md) | '*identifier*' array element type cannot be function or abstract class type |
| [Compiler error C2093](compiler-error-c2093.md) | '*identifier1*': cannot be initialized using address of automatic variable '*identifier2*' |
| [Compiler error C2094](compiler-error-c2094.md) | label '*identifier*' was undefined |
| [Compiler error C2095](compiler-error-c2095.md) | '*function*': actual parameter has type 'void': parameter *number* |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The articles in this section of the documentation explain a subset of the error

|Error|Message|
|-----------|-------------|
|[Compiler error C2100](compiler-error-c2100.md)|illegal indirection|
|[Compiler error C2100](compiler-error-c2100.md)|you cannot dereference an operand of type '*type*'|
|[Compiler error C2101](compiler-error-c2101.md)|'&' on constant|
|[Compiler error C2102](compiler-error-c2102.md)|'&' requires l-value|
|[Compiler error C2103](compiler-error-c2103.md)|'&' on register variable|
Expand All @@ -31,11 +31,11 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2113](compiler-error-c2113.md)|'-': pointer can only be subtracted from another pointer|
|[Compiler error C2114](compiler-error-c2114.md)|'*operator*': pointer on left; needs integral value on right|
|[Compiler error C2115](compiler-error-c2115.md)|'*operator*': incompatible types|
|[Compiler error C2116](compiler-error-c2116.md)|function parameter lists differed|
|[Compiler error C2116](compiler-error-c2116.md)|'*name*': function parameter lists do not match between declarations|
|[Compiler error C2117](compiler-error-c2117.md)|'*identifier*': array bounds overflow|
|[Compiler error C2118](compiler-error-c2118.md)|negative subscript|
|Compiler error C2119|'*identifier*': the type for '*type*' cannot be deduced from an empty initializer|
|[Compiler error C2120](compiler-error-c2120.md)|'void' illegal with all types|
|[Compiler error C2120](compiler-error-c2120.md)|'`void`' cannot be combined with any other type specifier|
|[Compiler error C2121](compiler-error-c2121.md)|'#': invalid character: possibly the result of a macro expansion|
|[Compiler error C2122](compiler-error-c2122.md)|'*identifier*': prototype parameter in name list illegal|
|Compiler error C2123|'*identifier*': alias templates cannot be explicitly or partially specialized|
Expand All @@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2132](compiler-error-c2132.md)|syntax error: unexpected identifier|
|[Compiler error C2133](compiler-error-c2133.md)|'*identifier*': unknown size|
|[Compiler error C2134](compiler-error-c2134.md)|'*function*': call does not result in a constant expression|
|[Compiler error C2135](compiler-error-c2135.md)|'*operator*': illegal bit field operation|
|[Compiler error C2135](compiler-error-c2135.md)|'*identifier*': you cannot apply '*operator*' to a bit-field|
|Compiler error C2136|authoring API contract not allowed|
|[Compiler error C2137](compiler-error-c2137.md)|empty character constant|
|[Compiler error C2138](compiler-error-c2138.md)|illegal to define an enumeration without any members|
Expand Down Expand Up @@ -86,7 +86,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2168](compiler-error-c2168.md)|'*function*': too few actual parameters for intrinsic function|
|[Compiler error C2169](compiler-error-c2169.md)|'*function*': intrinsic function, cannot be defined|
|[Compiler error C2170](compiler-error-c2170.md)|'*identifier*': not declared as a function, cannot be intrinsic|
|[Compiler error C2171](compiler-error-c2171.md)|'*operator*': illegal on operands of type '*type*'|
|[Compiler error C2171](compiler-error-c2171.md)|operator '*operator*' cannot be applied to an operand of type '*type*'|
|[Compiler error C2172](compiler-error-c2172.md)|'*function*': actual parameter is not a pointer: parameter *number*|
|[Compiler error C2173](compiler-error-c2173.md)|'*function*': actual parameter is not a pointer: parameter *number*, parameter list *number*|
|[Compiler error C2174](compiler-error-c2174.md)|'*function*': actual parameter has type 'void': parameter *number*, parameter list *number*|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2217](compiler-error-c2217.md)|'*attribute1*' requires '*attribute2*'|
|[Compiler error C2218](compiler-error-c2218.md)|'*calltype*' cannot be used with '/arch:IA32'|
|[Compiler error C2219](compiler-error-c2219.md)|syntax error: type qualifier must be after '*'|
|[Compiler error C2220](compiler-error-c2220.md)|warning treated as error - no '*filetype*' file generated|
|[Compiler error C2220](compiler-error-c2220.md)|the following warning is treated as an error|
|Compiler error C2221|Obsolete.|
|[Compiler error C2222](compiler-error-c2222.md)|unexpected type '*type*': a base-class or member was expected|
|[Compiler error C2223](compiler-error-c2223.md)|left of '->*identifier*' must point to struct/union|
Expand All @@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2232](compiler-error-c2232.md)|'->*identifier*': left operand has 'class/struct/union' type, use '.'|
|[Compiler error C2233](compiler-error-c2233.md)|'*identifier*': arrays of objects containing zero-size arrays are illegal|
|[Compiler error C2234](compiler-error-c2234.md)|*identifier*': arrays of references are illegal|
|Compiler error C2235|Obsolete.|
|Compiler error C2235|mismatching target architecture for compiled module interface for '*architecture 1*' from '*architecture 2*'|
|[Compiler error C2236](compiler-error-c2236.md)|unexpected token '*token*'. Did you forget a ';'?|
|Compiler error C2237|multiple module declaration|
|[Compiler error C2238](compiler-error-c2238.md)|unexpected token(s) preceding '*token*'|
Expand Down Expand Up @@ -78,7 +78,7 @@ The articles in this section of the documentation explain a subset of the error
|Compiler error C2260|'*specifier*': invalid InternalsVisibleToAttribute friend assembly specifier|
|[Compiler error C2261](compiler-error-c2261.md)|'*string*': assembly reference is invalid and cannot be resolved|
|[Compiler error C2262](compiler-error-c2262.md)|'*specifier*': InternalsVisibleTo declarations cannot have a version, culture, or processor architecture specified|
|Compiler error C2263|Obsolete.|
|Compiler error C2263|'*module name*': a translation unit cannot be imported into itself|
|[Compiler error C2264](compiler-error-c2264.md)|'*function*': error in function definition or declaration; function not called|
|Compiler error C2265|Obsolete.|
|[Compiler error C2266](compiler-error-c2266.md)|'*identifier*': reference to a non-constant bounded array is illegal|
Expand All @@ -90,10 +90,10 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2272](compiler-error-c2272.md)|'*function*': modifiers not allowed on static member functions|
|[Compiler error C2273](compiler-error-c2273.md)|'*type*': illegal as right side of '->' operator|
|[Compiler error C2274](compiler-error-c2274.md)|'*type*': illegal as right side of '.' operator|
|[Compiler error C2275](compiler-error-c2275.md)|'*type*': illegal use of this type as an expression|
|[Compiler error C2275](compiler-error-c2275.md)|'*type*': expected an expression instead of a type|
|[Compiler error C2276](compiler-error-c2276.md)|'*operator*': illegal operation on bound member function expression|
|[Compiler error C2277](compiler-error-c2277.md)|'*function*': cannot take address of this member function|
|Compiler error C2278|Obsolete.|
|Compiler error C2278|'*token*': unexpected token. Format is '`__has_cpp_attribute( identifier )`'|
|[Compiler error C2279](compiler-error-c2279.md)|exception specification cannot appear in a typedef declaration|
|[Compiler error C2280](compiler-error-c2280.md)|'*class*::*function*': attempting to reference a deleted function|
|Compiler error C2281|'*class*::*function*': a function can only be deleted on the first declaration|
Expand All @@ -103,7 +103,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2285](compiler-error-c2285.md)|pointers to members representation has already been determined - pragma ignored|
|[Compiler error C2286](compiler-error-c2286.md)|pointers to members of '*identifier*' representation is already set to *inheritance* - declaration ignored|
|[Compiler error C2287](compiler-error-c2287.md)|'*identifier*': inheritance representation: '*inheritiance*' is less general than the required '*inheritance*'|
|Compiler error C2288|Obsolete.|
|Compiler error C2288|preprocessing number '*number*' is not a valid integer or floating literal|
|[Compiler error C2289](compiler-error-c2289.md)|same type qualifier used more than once|
|[Compiler error C2290](compiler-error-c2290.md)|C++ 'asm' syntax ignored. Use __asm.|
|Compiler error C2291|An anonymous namespace cannot be exported.|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The articles in this section of the documentation explain a subset of the error
|Compiler error C2335|'*identifier*': a type cannot be introduced in a function parameter list|
|Compiler error C2336|'*type*': illegal type|
|[Compiler error C2337](compiler-error-c2337.md)|'*attribute*': attribute not found|
|[Compiler error C2338](compiler-error-c2338.md)|*(error message from external provider)*|
|[Compiler error C2338](compiler-error-c2338.md)|static_assert failed: '*(error message from external provider)*'|
|Compiler error C2339|'*identifier*': illegal type in embedded-IDL|
|Compiler error C2340|'*identifier*': 'static' can only be used within a class definition|
|[Compiler error C2341](compiler-error-c2341.md)|'*section*': segment must be defined using #pragma data_seg, code_seg or section prior to use|
Expand All @@ -67,7 +67,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2349](compiler-error-c2349.md)|'*function*' cannot be compiled as managed: '*explanation*'; use #pragma unmanaged|
|[Compiler error C2350](compiler-error-c2350.md)|'*identifier*' is not a static member|
|[Compiler error C2351](compiler-error-c2351.md)|obsolete C++ constructor initialization syntax|
|[Compiler error C2352](compiler-error-c2352.md)|'*identifier*': illegal call of non-static member function|
|[Compiler error C2352](compiler-error-c2352.md)|'*identifier*': a call of a non-static member function requires an object|
|[Compiler error C2353](compiler-error-c2353.md)|exception specification is not allowed|
|Compiler error C2354|Obsolete.|
|[Compiler error C2355](compiler-error-c2355.md)|'this': can only be referenced inside non-static member functions or non-static data member initializers|
Expand Down Expand Up @@ -96,7 +96,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2378](compiler-error-c2378.md)|'*identifier*': redefinition; symbol cannot be overloaded with a typedef|
|[Compiler error C2379](compiler-error-c2379.md)|formal parameter *number* has different type when promoted|
|[Compiler error C2380](compiler-error-c2380.md)|type(s) preceding '*identifier*' (constructor with return type, or illegal redefinition of current class-name?)|
|[Compiler error C2381](compiler-error-c2381.md)|'*identifier*': redefinition; '__declspec(noreturn)' or '[[noreturn]]' differs|
|[Compiler error C2381](compiler-error-c2381.md)|'*identifier*': redefinition; '`noreturn`' differs|
|[Compiler error C2382](compiler-error-c2382.md)|'*identifier*': redefinition; different exception specifications|
|[Compiler error C2383](compiler-error-c2383.md)|'*identifier*': default-arguments are not allowed on this symbol|
|[Compiler error C2384](compiler-error-c2384.md)|'*member*': cannot apply thread_local or __declspec(thread) to a member of a managed/WinRT class|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
|[Compiler error C2432](compiler-error-c2432.md)|illegal reference to 16-bit data in '*context*'|
|[Compiler error C2433](compiler-error-c2433.md)|'*identifier*': '*modifier*' not permitted on data declarations|
|[Compiler error C2434](compiler-error-c2434.md)|'*symbol*': a symbol declared with `__declspec(process)` cannot be dynamically initialized in `/clr:pure` mode|
|[Compiler error C2435](compiler-error-c2435.md)|'var': dynamic initialization requires managed CRT, cannot compile with `/clr:safe`|
|[Compiler error C2435](compiler-error-c2435.md)|'*var*': dynamic initialization requires managed CRT, cannot compile with `/clr:safe`|
|[Compiler error C2436](compiler-error-c2436.md)|'*identifier*': member function or nested class in constructor initializer list|
|[Compiler error C2437](compiler-error-c2437.md)|'*identifier*': has already been initialized|
|[Compiler error C2438](compiler-error-c2438.md)|'*identifier*': cannot initialize static class data via constructor|
Expand All @@ -60,11 +60,12 @@ The articles in this section of the documentation explain a subset of the error
|Compiler error C2442|'*identifier*': nested-namespace-definition cannot be inline or have attributes|
|[Compiler error C2443](compiler-error-c2443.md)|operand size conflict|
|[Compiler error C2444](compiler-error-c2444.md)|'*identifier*': used ANSI prototype, found 'type', expected '{' or ';'|
|Compiler error C2445|result type of conditional expression is ambiguous: types '*type 1*' and '*type 2*' can be converted to multiple common types|
|[Compiler error C2446](compiler-error-c2446.md)|'*operator*': no conversion from '*type_1*' to '*type_2*'|
|[Compiler error C2447](compiler-error-c2447.md)|'{': missing function header (old-style formal list?)|
|[Compiler error C2448](compiler-error-c2448.md)|'*identifier*': function-style initializer appears to be a function definition|
|[Compiler error C2449](compiler-error-c2449.md)|found '{' at file scope (missing function header?)|
|[Compiler error C2450](compiler-error-c2450.md)|switch expression of type '*type*' is illegal|
|[Compiler error C2450](compiler-error-c2450.md)|a `switch` expression of type '*type*' is illegal|
|[Compiler error C2451](compiler-error-c2451.md)|conditional expression of type '*type*' is illegal|
|[Compiler error C2452](compiler-error-c2452.md)|'*type*': invalid source type for `safe_cast`|
|Compiler error C2453|'*type*': invalid target type for safe_cast|
Expand Down
Loading