Skip to content

Commit 8d59cb8

Browse files
TaojunshenTylerMSFTTylerMSFTColin Robertson
authored
7/27/2021 AM Publish (#3682)
* fix code sample (#3676) * fix code sample * acrolinx Co-authored-by: TylerMSFT <[email protected]> * Address 3269 typo in warning number (#3680) Co-authored-by: Tyler Whitney <[email protected]> Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Colin Robertson <[email protected]>
1 parent dbca977 commit 8d59cb8

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn about the cause and fixes for Compiler warning (level 1) C4834."
33
title: "Compiler warning (Level 1) C4834"
4-
ms.date: 04/18/2021
4+
ms.date: 07/26/2021
55
f1_keywords: ["C4834"]
66
helpviewer_keywords: ["C4834"]
77
---
@@ -19,13 +19,13 @@ This warning was introduced in Visual Studio 2017 version 15.3 as a level 3 warn
1919

2020
### To turn off the warning without code changes
2121

22-
You can turn off the warning for a specific line of code by using the [warning](../../preprocessor/warning.md) pragma, `#pragma warning(suppress : 4034)`. You can also turn off the warning within a file by using the warning pragma, `#pragma warning(disable : 4034)`. You can turn off the warning globally in command-line builds by using the **`/wd4034`** command-line option.
22+
You can turn off the warning for a specific line of code by using the [`warning`](../../preprocessor/warning.md) pragma, `#pragma warning(suppress : 4834)`. You can also turn off the warning within a file by using the warning pragma, `#pragma warning(disable : 4834)`. You can turn off the warning globally in command-line builds by using the **`/wd4834`** command-line option.
2323

2424
To turn off the warning for an entire project in the Visual Studio IDE:
2525

2626
1. Open the **Property Pages** dialog for your project. For information on how to use the Property Pages dialog, see [Property Pages](../../build/reference/property-pages-visual-cpp.md).
2727
1. Select the **Configuration Properties** > **C/C++** > **Advanced** page.
28-
1. Edit the **Disable Specific Warnings** property to add *`4034`*. Choose **OK** to apply your changes.
28+
1. Edit the **Disable Specific Warnings** property to add *`4834`*. Choose **OK** to apply your changes.
2929

3030
## Example
3131

0 commit comments

Comments
 (0)