You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/vscpp-step-0-installation.md
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -261,11 +261,7 @@ For details on the disk space and operating system requirements, see [Visual Stu
261
261
262
262
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.
263
263
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
-

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.
269
265
270
266
1. When Visual Studio opens, check to see if the flag icon in the title bar is highlighted:
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-by-compiler-version.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,9 @@ These versions of the compiler introduced new warnings:
53
53
| Visual Studio 2022 version 17.8 | 19.38 |
54
54
| Visual Studio 2022 version 17.9 | 19.39 |
55
55
| 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 |
56
59
57
60
58
61
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+
61
64
62
65
::: moniker range=">= msvc-170"
63
66
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
+
64
93
## Warnings introduced in Visual Studio 2022 version 17.10 (compiler version 19.40)
65
94
66
95
These warnings, and all warnings in later versions, are suppressed by using the compiler option **`/Wv:19.40`**.
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4000-through-c4199.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
88
88
|[Compiler warning (level 1) C4097](compiler-warning-level-1-c4097.md)|expected pragma parameter to be '`restore`' or '`off`'|
89
89
|[Compiler warning (level 1) C4098](compiler-warning-level-1-c4098.md)|'*function*': '`void`' function returning a value|
90
90
|[Compiler warning (level 2) C4099](compiler-warning-level-2-c4099.md)|'*identifier*': type name first seen using '*object_type1*' now seen using '*object_type2*'|
|[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
154
154
|[Compiler warning (level 1) C4187](compiler-warning-level-1-c4187.md)|`#import` attributes '*attribute1*' and '*attribute2*' are incompatible; both ignored|
155
155
|Compiler warning (level 1) C4188|constant expression is not integral|
156
156
|[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|
158
158
|[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|
159
159
|[Compiler warning (level 3) C4192](compiler-warning-level-3-c4192.md)|automatically excluding '*identifier*' while importing type library '*library*'|
160
160
|Compiler warning (level 3) C4193|`#pragma warning(pop)`: no matching '`#pragma warning(push)`'|
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4400-through-c4599.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
77
77
|[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*|
78
78
|[Compiler warning (level 4, off) C4464](compiler-warning-level-4-c4464.md)|relative include path contains '`..`'|
79
79
|Compiler warning C4466|Could not perform coroutine heap elision|
80
+
|Compiler warning (level 1) C4465|'*identifier*': use of dependent template requires `::template`|
80
81
|Compiler warning (level 1) C4467|Usage of ATL attributes is deprecated|
81
82
|Compiler warning (level 1) C4468|The `[[fallthrough]]` attribute must be followed by a `case` label or a `default` label|
82
83
|[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
156
157
|[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*'|
|[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*`)`|
160
161
|[Compiler warning (level 1) C4561](compiler-warning-level-1-c4561.md)|'`__fastcall`' incompatible with the '`/clr`' option: converting to '`__stdcall`'|
161
162
|Compiler warning (level 4) C4562|fully prototyped functions are required with the '`/clr`' option: converting '`()`' to '`(void)`'|
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c5200-through-c5399.md
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ The articles in this section describe Microsoft C/C++ compiler warning messages
65
65
|[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 |
66
66
| 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*'. |
67
67
| 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?|
69
69
| 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 |
70
70
| Compiler warning (level 4) C5253 | a non-local lambda cannot have a capture default |
71
71
| 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
90
90
| Compiler warning (level 1) C5273 | behavior change: `_Alignas` on anonymous type no longer ignored (promoted members will align) |
91
91
| Compiler warning (level 1) C5274 | behavior change: `_Alignas` no longer applies to the type '*type*' (only applies to declared data objects) |
92
92
| 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 |
93
105
| Compiler warning (error) C5300 | '`#pragma omp atomic`*clause*': expression mismatch for lvalue being updated |
| Compiler warning (level 1) C5303 | function marked with `[[msvc::intrinsic]]` did not result in a no-op cast |
97
109
| 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 |
98
110
| 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*'|
0 commit comments