Skip to content

Commit abecbd4

Browse files
Merge pull request #5210 from MicrosoftDocs/main638761915033744474sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents e0f677d + bdb22f6 commit abecbd4

19 files changed

+156
-80
lines changed

docs/code-quality/c6993.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
description: "Learn more about: Warning C6993"
33
title: Warning C6993
4-
ms.date: 11/04/2016
4+
ms.date: 2/25/2025
55
f1_keywords: ["C6993"]
6-
ms.assetid: 7ea93bc6-b934-4b6b-b71a-a56e765fb4cd
76
---
87
# Warning C6993
98

109
> Code analysis ignores OpenMP constructs; analyzing single-threaded code
1110
12-
This warning indicates that the Code Analyzer has encountered Open MP pragmas that it can't analyze.
11+
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.
12+
13+
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.

docs/error-messages/compiler-errors-1/compiler-errors-c2001-through-c2099.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ The articles in this section of the documentation explain a subset of the error
2020
| [Compiler error C2003](compiler-error-c2003.md) | expected 'defined id' |
2121
| [Compiler error C2004](compiler-error-c2004.md) | expected 'defined(id)' |
2222
| [Compiler error C2005](compiler-error-c2005.md) | #line expected a line number, found '*token*' |
23-
| [Compiler error C2006](compiler-error-c2006.md) | '*directive*': expected a filename, found '*token*' |
23+
| [Compiler error C2006](compiler-error-c2006.md) | '*directive*': expected `"FILENAME"` or `<FILENAME>` |
2424
| [Compiler error C2007](compiler-error-c2007.md) | #define syntax |
2525
| [Compiler error C2008](compiler-error-c2008.md) | '*character*': unexpected in macro definition |
26-
| [Compiler error C2009](compiler-error-c2009.md) | reuse of macro formal '*identifier*' |
26+
| [Compiler error C2009](compiler-error-c2009.md) | cannot reuse macro parameter name '*identifier*' |
2727
| [Compiler error C2010](compiler-error-c2010.md) | '*character*': unexpected in macro formal parameter list |
2828
| [Compiler error C2011](compiler-error-c2011.md) | '*identifier*': '*type*' type redefinition |
2929
| [Compiler error C2012](compiler-error-c2012.md) | missing name following '<' |
30-
| [Compiler error C2013](compiler-error-c2013.md) | missing '>' |
30+
| [Compiler error C2013](compiler-error-c2013.md) | expected a '*token*' |
3131
| [Compiler error C2014](compiler-error-c2014.md) | preprocessor command must start as first nonwhite space |
3232
| [Compiler error C2015](compiler-error-c2015.md) | too many characters in constant |
3333
| [Compiler error C2016](compiler-error-c2016.md) | C requires that a struct or union has at least one member |
@@ -89,7 +89,7 @@ The articles in this section of the documentation explain a subset of the error
8989
| [Compiler error C2072](compiler-error-c2072.md) | '*identifier*': initialization of a function |
9090
| [Compiler error C2073](compiler-error-c2073.md) | **(Obsolete)** '*identifier*': elements of partially initialized array must have a default constructor |
9191
| [Compiler error C2074](compiler-error-c2074.md) | '*identifier*': '*type*' initialization requires a brace-enclosed initializer list |
92-
| [Compiler error C2075](compiler-error-c2075.md) | '*identifier*': array initialization requires a brace-enclosed initializer list |
92+
| [Compiler error C2075](compiler-error-c2075.md) | '*identifier*': initialization requires a brace-enclosed initializer list |
9393
| [Compiler error C2076](compiler-error-c2076.md) | a brace-enclosed initializer list cannot be used in a new-expression whose type contains '*type*' |
9494
| [Compiler error C2077](compiler-error-c2077.md) | non-scalar field initializer '*identifier*' |
9595
| [Compiler error C2078](compiler-error-c2078.md) | too many initializers |
@@ -102,11 +102,11 @@ The articles in this section of the documentation explain a subset of the error
102102
| [Compiler error C2085](compiler-error-c2085.md) | '*identifier*': not in formal parameter list |
103103
| [Compiler error C2086](compiler-error-c2086.md) | '*identifier*': redefinition |
104104
| [Compiler error C2087](compiler-error-c2087.md) | '*identifier*': missing subscript |
105-
| [Compiler error C2088](compiler-error-c2088.md) | '*operator*': illegal for struct/class/union |
105+
| [Compiler error C2088](compiler-error-c2088.md) | built-in operator '*operator*' cannot be applied to an operand of type '*class type*' |
106106
| [Compiler error C2089](compiler-error-c2089.md) | '*identifier*': '*type*' too large |
107107
| [Compiler error C2090](compiler-error-c2090.md) | function returns array |
108108
| [Compiler error C2091](compiler-error-c2091.md) | function returns function |
109-
| [Compiler error C2092](compiler-error-c2092.md) | '*identifier*' array element type cannot be function |
109+
| [Compiler error C2092](compiler-error-c2092.md) | '*identifier*' array element type cannot be function or abstract class type |
110110
| [Compiler error C2093](compiler-error-c2093.md) | '*identifier1*': cannot be initialized using address of automatic variable '*identifier2*' |
111111
| [Compiler error C2094](compiler-error-c2094.md) | label '*identifier*' was undefined |
112112
| [Compiler error C2095](compiler-error-c2095.md) | '*function*': actual parameter has type 'void': parameter *number* |

docs/error-messages/compiler-errors-1/compiler-errors-c2100-through-c2199.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The articles in this section of the documentation explain a subset of the error
1515

1616
|Error|Message|
1717
|-----------|-------------|
18-
|[Compiler error C2100](compiler-error-c2100.md)|illegal indirection|
18+
|[Compiler error C2100](compiler-error-c2100.md)|you cannot dereference an operand of type '*type*'|
1919
|[Compiler error C2101](compiler-error-c2101.md)|'&' on constant|
2020
|[Compiler error C2102](compiler-error-c2102.md)|'&' requires l-value|
2121
|[Compiler error C2103](compiler-error-c2103.md)|'&' on register variable|
@@ -31,11 +31,11 @@ The articles in this section of the documentation explain a subset of the error
3131
|[Compiler error C2113](compiler-error-c2113.md)|'-': pointer can only be subtracted from another pointer|
3232
|[Compiler error C2114](compiler-error-c2114.md)|'*operator*': pointer on left; needs integral value on right|
3333
|[Compiler error C2115](compiler-error-c2115.md)|'*operator*': incompatible types|
34-
|[Compiler error C2116](compiler-error-c2116.md)|function parameter lists differed|
34+
|[Compiler error C2116](compiler-error-c2116.md)|'*name*': function parameter lists do not match between declarations|
3535
|[Compiler error C2117](compiler-error-c2117.md)|'*identifier*': array bounds overflow|
3636
|[Compiler error C2118](compiler-error-c2118.md)|negative subscript|
3737
|Compiler error C2119|'*identifier*': the type for '*type*' cannot be deduced from an empty initializer|
38-
|[Compiler error C2120](compiler-error-c2120.md)|'void' illegal with all types|
38+
|[Compiler error C2120](compiler-error-c2120.md)|'`void`' cannot be combined with any other type specifier|
3939
|[Compiler error C2121](compiler-error-c2121.md)|'#': invalid character: possibly the result of a macro expansion|
4040
|[Compiler error C2122](compiler-error-c2122.md)|'*identifier*': prototype parameter in name list illegal|
4141
|Compiler error C2123|'*identifier*': alias templates cannot be explicitly or partially specialized|
@@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
5050
|[Compiler error C2132](compiler-error-c2132.md)|syntax error: unexpected identifier|
5151
|[Compiler error C2133](compiler-error-c2133.md)|'*identifier*': unknown size|
5252
|[Compiler error C2134](compiler-error-c2134.md)|'*function*': call does not result in a constant expression|
53-
|[Compiler error C2135](compiler-error-c2135.md)|'*operator*': illegal bit field operation|
53+
|[Compiler error C2135](compiler-error-c2135.md)|'*identifier*': you cannot apply '*operator*' to a bit-field|
5454
|Compiler error C2136|authoring API contract not allowed|
5555
|[Compiler error C2137](compiler-error-c2137.md)|empty character constant|
5656
|[Compiler error C2138](compiler-error-c2138.md)|illegal to define an enumeration without any members|
@@ -86,7 +86,7 @@ The articles in this section of the documentation explain a subset of the error
8686
|[Compiler error C2168](compiler-error-c2168.md)|'*function*': too few actual parameters for intrinsic function|
8787
|[Compiler error C2169](compiler-error-c2169.md)|'*function*': intrinsic function, cannot be defined|
8888
|[Compiler error C2170](compiler-error-c2170.md)|'*identifier*': not declared as a function, cannot be intrinsic|
89-
|[Compiler error C2171](compiler-error-c2171.md)|'*operator*': illegal on operands of type '*type*'|
89+
|[Compiler error C2171](compiler-error-c2171.md)|operator '*operator*' cannot be applied to an operand of type '*type*'|
9090
|[Compiler error C2172](compiler-error-c2172.md)|'*function*': actual parameter is not a pointer: parameter *number*|
9191
|[Compiler error C2173](compiler-error-c2173.md)|'*function*': actual parameter is not a pointer: parameter *number*, parameter list *number*|
9292
|[Compiler error C2174](compiler-error-c2174.md)|'*function*': actual parameter has type 'void': parameter *number*, parameter list *number*|

docs/error-messages/compiler-errors-1/compiler-errors-c2200-through-c2299.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The articles in this section of the documentation explain a subset of the error
3535
|[Compiler error C2217](compiler-error-c2217.md)|'*attribute1*' requires '*attribute2*'|
3636
|[Compiler error C2218](compiler-error-c2218.md)|'*calltype*' cannot be used with '/arch:IA32'|
3737
|[Compiler error C2219](compiler-error-c2219.md)|syntax error: type qualifier must be after '*'|
38-
|[Compiler error C2220](compiler-error-c2220.md)|warning treated as error - no '*filetype*' file generated|
38+
|[Compiler error C2220](compiler-error-c2220.md)|the following warning is treated as an error|
3939
|Compiler error C2221|Obsolete.|
4040
|[Compiler error C2222](compiler-error-c2222.md)|unexpected type '*type*': a base-class or member was expected|
4141
|[Compiler error C2223](compiler-error-c2223.md)|left of '->*identifier*' must point to struct/union|
@@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
5050
|[Compiler error C2232](compiler-error-c2232.md)|'->*identifier*': left operand has 'class/struct/union' type, use '.'|
5151
|[Compiler error C2233](compiler-error-c2233.md)|'*identifier*': arrays of objects containing zero-size arrays are illegal|
5252
|[Compiler error C2234](compiler-error-c2234.md)|*identifier*': arrays of references are illegal|
53-
|Compiler error C2235|Obsolete.|
53+
|Compiler error C2235|mismatching target architecture for compiled module interface for '*architecture 1*' from '*architecture 2*'|
5454
|[Compiler error C2236](compiler-error-c2236.md)|unexpected token '*token*'. Did you forget a ';'?|
5555
|Compiler error C2237|multiple module declaration|
5656
|[Compiler error C2238](compiler-error-c2238.md)|unexpected token(s) preceding '*token*'|
@@ -78,7 +78,7 @@ The articles in this section of the documentation explain a subset of the error
7878
|Compiler error C2260|'*specifier*': invalid InternalsVisibleToAttribute friend assembly specifier|
7979
|[Compiler error C2261](compiler-error-c2261.md)|'*string*': assembly reference is invalid and cannot be resolved|
8080
|[Compiler error C2262](compiler-error-c2262.md)|'*specifier*': InternalsVisibleTo declarations cannot have a version, culture, or processor architecture specified|
81-
|Compiler error C2263|Obsolete.|
81+
|Compiler error C2263|'*module name*': a translation unit cannot be imported into itself|
8282
|[Compiler error C2264](compiler-error-c2264.md)|'*function*': error in function definition or declaration; function not called|
8383
|Compiler error C2265|Obsolete.|
8484
|[Compiler error C2266](compiler-error-c2266.md)|'*identifier*': reference to a non-constant bounded array is illegal|
@@ -90,10 +90,10 @@ The articles in this section of the documentation explain a subset of the error
9090
|[Compiler error C2272](compiler-error-c2272.md)|'*function*': modifiers not allowed on static member functions|
9191
|[Compiler error C2273](compiler-error-c2273.md)|'*type*': illegal as right side of '->' operator|
9292
|[Compiler error C2274](compiler-error-c2274.md)|'*type*': illegal as right side of '.' operator|
93-
|[Compiler error C2275](compiler-error-c2275.md)|'*type*': illegal use of this type as an expression|
93+
|[Compiler error C2275](compiler-error-c2275.md)|'*type*': expected an expression instead of a type|
9494
|[Compiler error C2276](compiler-error-c2276.md)|'*operator*': illegal operation on bound member function expression|
9595
|[Compiler error C2277](compiler-error-c2277.md)|'*function*': cannot take address of this member function|
96-
|Compiler error C2278|Obsolete.|
96+
|Compiler error C2278|'*token*': unexpected token. Format is '`__has_cpp_attribute( identifier )`'|
9797
|[Compiler error C2279](compiler-error-c2279.md)|exception specification cannot appear in a typedef declaration|
9898
|[Compiler error C2280](compiler-error-c2280.md)|'*class*::*function*': attempting to reference a deleted function|
9999
|Compiler error C2281|'*class*::*function*': a function can only be deleted on the first declaration|
@@ -103,7 +103,7 @@ The articles in this section of the documentation explain a subset of the error
103103
|[Compiler error C2285](compiler-error-c2285.md)|pointers to members representation has already been determined - pragma ignored|
104104
|[Compiler error C2286](compiler-error-c2286.md)|pointers to members of '*identifier*' representation is already set to *inheritance* - declaration ignored|
105105
|[Compiler error C2287](compiler-error-c2287.md)|'*identifier*': inheritance representation: '*inheritiance*' is less general than the required '*inheritance*'|
106-
|Compiler error C2288|Obsolete.|
106+
|Compiler error C2288|preprocessing number '*number*' is not a valid integer or floating literal|
107107
|[Compiler error C2289](compiler-error-c2289.md)|same type qualifier used more than once|
108108
|[Compiler error C2290](compiler-error-c2290.md)|C++ 'asm' syntax ignored. Use __asm.|
109109
|Compiler error C2291|An anonymous namespace cannot be exported.|

docs/error-messages/compiler-errors-1/compiler-errors-c2300-through-c2399.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The articles in this section of the documentation explain a subset of the error
5353
|Compiler error C2335|'*identifier*': a type cannot be introduced in a function parameter list|
5454
|Compiler error C2336|'*type*': illegal type|
5555
|[Compiler error C2337](compiler-error-c2337.md)|'*attribute*': attribute not found|
56-
|[Compiler error C2338](compiler-error-c2338.md)|*(error message from external provider)*|
56+
|[Compiler error C2338](compiler-error-c2338.md)|static_assert failed: '*(error message from external provider)*'|
5757
|Compiler error C2339|'*identifier*': illegal type in embedded-IDL|
5858
|Compiler error C2340|'*identifier*': 'static' can only be used within a class definition|
5959
|[Compiler error C2341](compiler-error-c2341.md)|'*section*': segment must be defined using #pragma data_seg, code_seg or section prior to use|
@@ -67,7 +67,7 @@ The articles in this section of the documentation explain a subset of the error
6767
|[Compiler error C2349](compiler-error-c2349.md)|'*function*' cannot be compiled as managed: '*explanation*'; use #pragma unmanaged|
6868
|[Compiler error C2350](compiler-error-c2350.md)|'*identifier*' is not a static member|
6969
|[Compiler error C2351](compiler-error-c2351.md)|obsolete C++ constructor initialization syntax|
70-
|[Compiler error C2352](compiler-error-c2352.md)|'*identifier*': illegal call of non-static member function|
70+
|[Compiler error C2352](compiler-error-c2352.md)|'*identifier*': a call of a non-static member function requires an object|
7171
|[Compiler error C2353](compiler-error-c2353.md)|exception specification is not allowed|
7272
|Compiler error C2354|Obsolete.|
7373
|[Compiler error C2355](compiler-error-c2355.md)|'this': can only be referenced inside non-static member functions or non-static data member initializers|
@@ -96,7 +96,7 @@ The articles in this section of the documentation explain a subset of the error
9696
|[Compiler error C2378](compiler-error-c2378.md)|'*identifier*': redefinition; symbol cannot be overloaded with a typedef|
9797
|[Compiler error C2379](compiler-error-c2379.md)|formal parameter *number* has different type when promoted|
9898
|[Compiler error C2380](compiler-error-c2380.md)|type(s) preceding '*identifier*' (constructor with return type, or illegal redefinition of current class-name?)|
99-
|[Compiler error C2381](compiler-error-c2381.md)|'*identifier*': redefinition; '__declspec(noreturn)' or '[[noreturn]]' differs|
99+
|[Compiler error C2381](compiler-error-c2381.md)|'*identifier*': redefinition; '`noreturn`' differs|
100100
|[Compiler error C2382](compiler-error-c2382.md)|'*identifier*': redefinition; different exception specifications|
101101
|[Compiler error C2383](compiler-error-c2383.md)|'*identifier*': default-arguments are not allowed on this symbol|
102102
|[Compiler error C2384](compiler-error-c2384.md)|'*member*': cannot apply thread_local or __declspec(thread) to a member of a managed/WinRT class|

docs/error-messages/compiler-errors-1/compiler-errors-c2400-through-c2499.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The articles in this section of the documentation explain a subset of the error
5050
|[Compiler error C2432](compiler-error-c2432.md)|illegal reference to 16-bit data in '*context*'|
5151
|[Compiler error C2433](compiler-error-c2433.md)|'*identifier*': '*modifier*' not permitted on data declarations|
5252
|[Compiler error C2434](compiler-error-c2434.md)|'*symbol*': a symbol declared with `__declspec(process)` cannot be dynamically initialized in `/clr:pure` mode|
53-
|[Compiler error C2435](compiler-error-c2435.md)|'var': dynamic initialization requires managed CRT, cannot compile with `/clr:safe`|
53+
|[Compiler error C2435](compiler-error-c2435.md)|'*var*': dynamic initialization requires managed CRT, cannot compile with `/clr:safe`|
5454
|[Compiler error C2436](compiler-error-c2436.md)|'*identifier*': member function or nested class in constructor initializer list|
5555
|[Compiler error C2437](compiler-error-c2437.md)|'*identifier*': has already been initialized|
5656
|[Compiler error C2438](compiler-error-c2438.md)|'*identifier*': cannot initialize static class data via constructor|
@@ -60,11 +60,12 @@ The articles in this section of the documentation explain a subset of the error
6060
|Compiler error C2442|'*identifier*': nested-namespace-definition cannot be inline or have attributes|
6161
|[Compiler error C2443](compiler-error-c2443.md)|operand size conflict|
6262
|[Compiler error C2444](compiler-error-c2444.md)|'*identifier*': used ANSI prototype, found 'type', expected '{' or ';'|
63+
|Compiler error C2445|result type of conditional expression is ambiguous: types '*type 1*' and '*type 2*' can be converted to multiple common types|
6364
|[Compiler error C2446](compiler-error-c2446.md)|'*operator*': no conversion from '*type_1*' to '*type_2*'|
6465
|[Compiler error C2447](compiler-error-c2447.md)|'{': missing function header (old-style formal list?)|
6566
|[Compiler error C2448](compiler-error-c2448.md)|'*identifier*': function-style initializer appears to be a function definition|
6667
|[Compiler error C2449](compiler-error-c2449.md)|found '{' at file scope (missing function header?)|
67-
|[Compiler error C2450](compiler-error-c2450.md)|switch expression of type '*type*' is illegal|
68+
|[Compiler error C2450](compiler-error-c2450.md)|a `switch` expression of type '*type*' is illegal|
6869
|[Compiler error C2451](compiler-error-c2451.md)|conditional expression of type '*type*' is illegal|
6970
|[Compiler error C2452](compiler-error-c2452.md)|'*type*': invalid source type for `safe_cast`|
7071
|Compiler error C2453|'*type*': invalid target type for safe_cast|

0 commit comments

Comments
 (0)