Skip to content

Commit fc92153

Browse files
authored
Update c5045.md
fixed typo
1 parent dbc84c2 commit fc92153

File tree

1 file changed

+1
-1
lines changed
  • docs/error-messages/compiler-warnings

1 file changed

+1
-1
lines changed

docs/error-messages/compiler-warnings/c5045.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ helpviewer_keywords: ["C5045"]
1212

1313
Warning C5045 lets you see what patterns in your code cause a Spectre mitigation, such as an LFENCE, to be inserted when the [/Qspectre](../../build/reference/qspectre.md) compiler option is specified. This lets you identify which code files are affected by the security issue. This warning is purely informational: the mitigation is not inserted until you recompile using the **/Qspectre** switch. The functionality of C5045 is independent of the **/Qspectre** switch, so you can use them both in the same compilation.
1414

15-
This warning is new in Visual Studio 2017 version 15.7, and is off by default. Use [/Wall](../../build/reference/compiler-option-warning-level.md) to enable all warnings that are off by default, or __/w__*n*__5038__ to enable C5045 as a level *n* warning. In the IDE, the default warning level is **/W3** and this warning can be enabled in the project **Property Pages** dialog. Open **Configuration Properties** > **C/C++** > **Command Line** and in the **Additional options** box, add */w35045*, then choose **OK**. For more information, see [Compiler warnings that are off by default](../../preprocessor/compiler-warnings-that-are-off-by-default.md). For information on how to disable warnings by compiler version, see [Compiler warnings by compiler version](compiler-warnings-by-compiler-version.md).
15+
This warning is new in Visual Studio 2017 version 15.7, and is off by default. Use [/Wall](../../build/reference/compiler-option-warning-level.md) to enable all warnings that are off by default, or __/w__*n*__5045__ to enable C5045 as a level *n* warning. In the IDE, the default warning level is **/W3** and this warning can be enabled in the project **Property Pages** dialog. Open **Configuration Properties** > **C/C++** > **Command Line** and in the **Additional options** box, add */w35045*, then choose **OK**. For more information, see [Compiler warnings that are off by default](../../preprocessor/compiler-warnings-that-are-off-by-default.md). For information on how to disable warnings by compiler version, see [Compiler warnings by compiler version](compiler-warnings-by-compiler-version.md).
1616

1717
## Example
1818

0 commit comments

Comments
 (0)