Skip to content

Commit 305ef0c

Browse files
Merge pull request #5204 from MicrosoftDocs/main638760186510059306sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents e866fd9 + be03e18 commit 305ef0c

7 files changed

+51
-9
lines changed
-136 KB
Binary file not shown.
-167 KB
Binary file not shown.

docs/build/vscpp-step-0-installation.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,7 @@ For details on the disk space and operating system requirements, see [Visual Stu
261261

262262
The first time you run Visual Studio, you're asked to sign in with a Microsoft Account. If you don't have one, you can create one for free. You must also choose a theme. Don't worry, you can change it later if you want to.
263263

264-
It might take Visual Studio several minutes to get ready for use the first time you run it. Here's what it looks like in a quick time-lapse:
265-
266-
![Visual Studio sign in dialog.](media/vscpp-quickstart-first-run.gif "Visual Studio 2017 sign in")
267-
268-
Visual Studio starts faster when you run it again.
264+
It might take Visual Studio several minutes to get ready for use the first time you run it.
269265

270266
1. When Visual Studio opens, check to see if the flag icon in the title bar is highlighted:
271267

docs/error-messages/compiler-warnings/compiler-warnings-by-compiler-version.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ These versions of the compiler introduced new warnings:
5353
| Visual Studio 2022 version 17.8 | 19.38 |
5454
| Visual Studio 2022 version 17.9 | 19.39 |
5555
| Visual Studio 2022 version 17.10 | 19.40 |
56+
| Visual Studio 2022 version 17.11 | 19.41 |
57+
| Visual Studio 2022 version 17.12 | 19.42 |
58+
| Visual Studio 2022 version 17.13 | 19.43 |
5659

5760

5861
You can specify only the major number, the major and minor numbers, or the major, minor, and build numbers to the **`/Wv`** option. The compiler reports all warnings that match versions that begin with the specified number. It suppresses all warnings for versions greater than the specified number. For example, **`/Wv:17`** reports warnings introduced in or before any version of Visual Studio 2012, and suppresses warnings introduced by any compiler from Visual Studio 2013 (version 18) or later. To suppress warnings introduced in Visual Studio 2015 update 2 and later, you can use **`/Wv:19.00.23506`**. Use **`/Wv:19.11`** to report the warnings introduced in any version of Visual Studio before Visual Studio 2017 version 15.5, but suppress warnings introduced in Visual Studio 2017 version 15.5 and later.
@@ -61,6 +64,32 @@ The following sections list the warnings introduced by each version of Visual C+
6164

6265
::: moniker range=">= msvc-170"
6366

67+
## Warnings introduced in Visual Studio 2022 version 17.13 (compiler version 19.43)
68+
69+
These warnings, and all warnings in later versions, are suppressed by using the compiler option **`/Wv:19.43`**.
70+
71+
| Warning | Message |
72+
|--|--|
73+
|C5277| type trait optimization for '*class name*' is disabled
74+
|C5308| Modifying reserved macro name '*macro name*' may cause undefined behavior
75+
|C5309| literal suffix '*name*' requires at least '*language version*'
76+
77+
## Warnings introduced in Visual Studio 2022 version 17.12 (compiler version 19.42)
78+
79+
These warnings, and all warnings in later versions, are suppressed by using the compiler option **`/Wv:19.42`**.
80+
81+
| Warning | Message |
82+
|--|--|
83+
|C5086| Arch setting *arch* and vector length *number* are not allowed. Using the default vector length - *number*.
84+
|C5276| `/experimental:ifcDebugRecords` currently requires `/Z7` to be enabled. Please recompile with `/Z7` enabled.
85+
|C5306| parameter array behavior change: overload '*identifier 1*' resolved to '*identifier 2*'; previously, it would have resolved to '*identifier 3*'. Use `/clr:ECMAParamArray` to revert to old behavior
86+
|C5307| '*function*': argument (*argument number*) converted from '*type 1*' to '*type 2*'. Missing '`L`' encoding-prefix for character literal?
87+
88+
89+
## Warnings introduced in Visual Studio 2022 version 17.11 (compiler version 19.41)
90+
91+
There were no new warnings introduced in 17.11
92+
6493
## Warnings introduced in Visual Studio 2022 version 17.10 (compiler version 19.40)
6594

6695
These warnings, and all warnings in later versions, are suppressed by using the compiler option **`/Wv:19.40`**.

docs/error-messages/compiler-warnings/compiler-warnings-c4000-through-c4199.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
8888
|[Compiler warning (level 1) C4097](compiler-warning-level-1-c4097.md)|expected pragma parameter to be '`restore`' or '`off`'|
8989
|[Compiler warning (level 1) C4098](compiler-warning-level-1-c4098.md)|'*function*': '`void`' function returning a value|
9090
|[Compiler warning (level 2) C4099](compiler-warning-level-2-c4099.md)|'*identifier*': type name first seen using '*object_type1*' now seen using '*object_type2*'|
91-
|[Compiler warning (level 4) C4100](compiler-warning-level-4-c4100.md)|'*identifier*': unreferenced formal parameter|
91+
|[Compiler warning (level 4) C4100](compiler-warning-level-4-c4100.md)|'*identifier*': unreferenced parameter|
9292
|[Compiler warning (level 3 and level 4) C4101](compiler-warning-level-3-c4101.md)|'*identifier*': unreferenced local variable|
9393
|[Compiler warning (level 3) C4102](compiler-warning-level-3-c4102.md)|'*label*': unreferenced label|
9494
|[Compiler warning (level 1) C4103](compiler-warning-level-1-c4103.md)|alignment changed after including header, may be due to missing `#pragma pack(pop)`|
@@ -154,7 +154,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
154154
|[Compiler warning (level 1) C4187](compiler-warning-level-1-c4187.md)|`#import` attributes '*attribute1*' and '*attribute2*' are incompatible; both ignored|
155155
|Compiler warning (level 1) C4188|constant expression is not integral|
156156
|[Compiler warning (level 3 and level 4) C4189](compiler-warning-level-4-c4189.md)|'*identifier*': local variable is initialized but not referenced|
157-
|[Compiler warning (level 1) C4190](compiler-warning-level-1-c4190.md)|'*identifier1*' has C-linkage specified, but returns UDT '*identifier2*' which is incompatible with C|
157+
|[Compiler warning (level 1) C4190](compiler-warning-level-1-c4190.md)|'*identifier1*' has C-linkage specified, but returns '*identifier2*' which is incompatible with C|
158158
|[Compiler warning (level 3, off) C4191](compiler-warning-level-3-c4191.md)|'*operation*': unsafe conversion from '*type_of_expression*' to '*type_required*'<br/>Making a function call using the resulting pointer may cause your program to fail|
159159
|[Compiler warning (level 3) C4192](compiler-warning-level-3-c4192.md)|automatically excluding '*identifier*' while importing type library '*library*'|
160160
|Compiler warning (level 3) C4193|`#pragma warning(pop)`: no matching '`#pragma warning(push)`'|

docs/error-messages/compiler-warnings/compiler-warnings-c4400-through-c4599.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
7777
|[Compiler warning (level 4) C4463](compiler-warning-level-4-c4463.md)|overflow; assigning *value* to bit-field that can only hold values from *min_value* to *max_value*|
7878
|[Compiler warning (level 4, off) C4464](compiler-warning-level-4-c4464.md)|relative include path contains '`..`'|
7979
|Compiler warning C4466|Could not perform coroutine heap elision|
80+
|Compiler warning (level 1) C4465|'*identifier*': use of dependent template requires `::template`|
8081
|Compiler warning (level 1) C4467|Usage of ATL attributes is deprecated|
8182
|Compiler warning (level 1) C4468|The `[[fallthrough]]` attribute must be followed by a `case` label or a `default` label|
8283
|[Compiler warning (level 1) C4470](compiler-warning-level-1-c4470.md)|floating-point control pragmas ignored under `/clr`|
@@ -156,7 +157,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
156157
|[Compiler warning (level 1) C4556](compiler-warning-level-1-c4556.md)|value of intrinsic immediate argument '*value*' is out of range '*lower_bound* - *upper_bound*'|
157158
|[Compiler warning (level 3, off) C4557](compiler-warning-level-3-c4557.md)|'`__assume`' contains effect '*effect*'|
158159
|[Compiler warning (level 1) C4558](compiler-warning-level-1-c4558.md)|value of operand '*value*' is out of range '*lower_bound* - *upper_bound*'|
159-
|[Compiler warning (level 4) C4559](compiler-warning-level-4-c4559.md)|''*function*': redefinition; the function gains `__declspec(`*modifier*`)`|
160+
|[Compiler warning (level 4) C4559](compiler-warning-level-4-c4559.md)|'*function*': redefinition; the function gains `__declspec(`*modifier*`)`|
160161
|[Compiler warning (level 1) C4561](compiler-warning-level-1-c4561.md)|'`__fastcall`' incompatible with the '`/clr`' option: converting to '`__stdcall`'|
161162
|Compiler warning (level 4) C4562|fully prototyped functions are required with the '`/clr`' option: converting '`()`' to '`(void)`'|
162163
|[Compiler warning (level 4) C4564](compiler-warning-level-4-c4564.md)|method '*method*' of *class* '*classname*' defines unsupported default parameter '*parameter*'|

docs/error-messages/compiler-warnings/compiler-warnings-c5200-through-c5399.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
6565
| [Compiler warning (level 1, off) C5248](c5248.md) | section '*section-name*' is reserved for C++ dynamic initialization. Variables manually put into the section may be optimized out and their order relative to compiler generated dynamic initializers is unspecified |
6666
| Compiler warning (level 1, off) C5249 | '*bitfield*' of type '*enumeration_name*' has named enumerators with values that cannot be represented in the given bit field width of '*bitfield_width*'. |
6767
| Compiler warning (level 3, off) C5250 | '*function_name*': intrinsic function not declared |
68-
| Compiler warning (level 4, off) C5251 | *segment-name* changed after including header |
68+
| Compiler warning (level 4, off) C5251 | the value of `#pragma` *pragma name* changed after `#include`; `#pragma `*pragma name*`(pop)` missing in this header? |
6969
| Compiler warning (level 4) C5252 | Multiple different types resulted in the same XFG type-hash *hash-value*; the PDB will only record information for one of them |
7070
| Compiler warning (level 4) C5253 | a non-local lambda cannot have a capture default |
7171
| Compiler warning (level 4, off) C5254 | language feature 'terse static assert' requires compiler flag '*/std:c++17*' |
@@ -90,12 +90,28 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
9090
| Compiler warning (level 1) C5273 | behavior change: `_Alignas` on anonymous type no longer ignored (promoted members will align) |
9191
| Compiler warning (level 1) C5274 | behavior change: `_Alignas` no longer applies to the type '*type*' (only applies to declared data objects) |
9292
| Compiler warning (error) C5275 | assembly '*name*' being imported under '*/clr*' does not contain the required fundamental types |
93+
| Compiler warning (level 1) C5276 | `/experimental:ifcDebugRecords` currently requires `/Z7` to be enabled. Please recompile with `/Z7` enabled.|
94+
| Compiler warning (level 1) C5277 | type trait optimization for '*class name*' is disabled |
95+
| Compiler warning (level 1) C5278 | adding a specialization for '*type*' has undefined behavior |
96+
| Compiler warning (level 1) C5279 | a lambda declarator without a parameter list requires at least '*language version*' |
97+
| Compiler warning (level 1) C5280 | a static operator '*operator name*' requires at least '*language version*'|
98+
| Compiler warning (level 1) C5281 | a static lambda requires at least '*language version*' |
99+
| Compiler warning (level 1) C5282 | '`if consteval`' requires at least '*language version*' |
100+
| Compiler warning (level 1) C5283 | an attribute in this position requires at least '*language version*' |
101+
| Compiler warning (level 4) C5284 | conversion from value '*value*' of type '*type 1*' to '*type 2*' requires a narrowing conversion |
102+
| Compiler warning (level 1) C5285 | cannot declare a specialization for '*template name*': *template argument* |
103+
| Compiler warning (level 1) C5286 | implicit conversion from `enum` type '*type 1*' to `enum` type '*type 2*'; use an explicit cast to silence this warning |
104+
| Compiler warning (level 1) C5287 | operands are different `enum` types '*type 1*' and '*type 2*'; use an explicit cast to silence this warning |
93105
| Compiler warning (error) C5300 | '`#pragma omp atomic` *clause*': expression mismatch for lvalue being updated |
94106
| [Compiler warning (level 1) C5301](c5301-c5302.md) | '`#pragma omp for`': '*loop-index*' increases while loop condition uses '*comparison*'; non-terminating loop? |
95107
| [Compiler warning (level 1) C5302](c5301-c5302.md) | '`#pragma omp for`': '*loop-index*' decreases while loop condition uses '*comparison*'; non-terminating loop? |
96108
| Compiler warning (level 1) C5303 | function marked with `[[msvc::intrinsic]]` did not result in a no-op cast |
97109
| Compiler warning (level 1) C5304 | a declaration designated by the using-declaration '*name1*' exported from this module has internal linkage and using such a name outside the module is ill-formed; consider declaring '*name2*' '`inline`' to use it outside of this module |
98110
| Compiler warning (level 1) C5305 | '*name*': an explicit instantiation declaration that follows an explicit instantiation definition is ignored |
111+
| Compiler warning (level 1) C5306 | parameter array behavior change: overload '*identifier 1*' resolved to '*identifier 2*'; previously, it would have resolved to '*identifier 3*'. Use `/clr:ECMAParamArray` to revert to old behavior |
112+
| Compiler warning (level 3) C5307 | '*function*': argument (*argument number*) converted from '*type 1*' to '*type 2*'. Missing '`L`' encoding-prefix for character literal? |
113+
| Compiler warning (level 1, error) C5308 | Modifying reserved macro name '*macro name*' may cause undefined behavior |
114+
| Compiler warning (level 1, error) C5309 | literal suffix '*name*' requires at least '*language version*'|
99115

100116
## See also
101117

0 commit comments

Comments
 (0)