Skip to content

Commit 037dd50

Browse files
authored
Add backticks in _SCL_SECURE_NO_WARNINGS topic
1 parent 6c52cf7 commit 037dd50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/standard-library/scl-secure-no-warnings.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ f1_keywords: ["_SCL_SECURE_NO_DEPRECATE", "_SCL_SECURE_NO_WARNINGS"]
66
helpviewer_keywords: ["_SCL_SECURE_NO_DEPRECATE", "_SCL_SECURE_NO_WARNINGS"]
77
ms.assetid: ef0ddea9-7c62-4b53-8b64-5f4fd369776f
88
---
9-
# _SCL_SECURE_NO_WARNINGS
9+
# `_SCL_SECURE_NO_WARNINGS`
1010

11-
Calling any of the potentially unsafe methods in the C++ Standard Library results in [Compiler Warning (level 3) C4996](../error-messages/compiler-warnings/compiler-warning-level-3-c4996.md). To disable this warning, define the macro _SCL_SECURE_NO_WARNINGS in your code:
11+
Calling any of the potentially unsafe methods in the C++ Standard Library results in [Compiler Warning (level 3) C4996](../error-messages/compiler-warnings/compiler-warning-level-3-c4996.md). To disable this warning, define the macro `_SCL_SECURE_NO_WARNINGS` in your code:
1212

1313
```cpp
1414
#define _SCL_SECURE_NO_WARNINGS
@@ -20,25 +20,25 @@ If you use precompiled headers, put this directive in your precompiled header fi
2020

2121
Other ways to disable warning C4996 include:
2222

23-
- Using the [/D (Preprocessor Definitions)](../build/reference/d-preprocessor-definitions.md) compiler option:
23+
- Using the [`/D` (Preprocessor Definitions)](../build/reference/d-preprocessor-definitions.md) compiler option:
2424

2525
> cl /D_SCL_SECURE_NO_WARNINGS [other compiler options] myfile.cpp
2626
27-
- Using the [/w](../build/reference/compiler-option-warning-level.md) compiler option:
27+
- Using the [`/w`](../build/reference/compiler-option-warning-level.md) compiler option:
2828

2929
> cl /wd4996 [other compiler options] myfile.cpp
3030
31-
- Using the [#pragma warning](../preprocessor/warning.md) directive:
31+
- Using the [`#pragma warning`](../preprocessor/warning.md) directive:
3232

3333
```cpp
3434
#pragma warning(disable:4996)
3535
```
3636

37-
Also, you can manually change the level of warning C4996 with the **/w\<l>\<n>** compiler option. For example, to set warning C4996 to level 4:
37+
Also, you can manually change the level of warning C4996 with the `/w<l><n>` compiler option. For example, to set warning C4996 to level 4:
3838

3939
> cl /w44996 [other compiler options] myfile.cpp
4040
41-
For more information, see [/w, /W0, /W1, /W2, /W3, /W4, /w1, /w2, /w3, /w4, /Wall, /wd, /we, /wo, /Wv, /WX (Warning Level)](../build/reference/compiler-option-warning-level.md).
41+
For more information, see [`/w`, `/W0`, `/W1`, `/W2`, `/W3`, `/W4`, `/w1`, `/w2`, `/w3`, `/w4`, `/Wall`, `/wd`, `/we`, `/wo`, `/Wv`, `/WX` (Warning Level)](../build/reference/compiler-option-warning-level.md).
4242

4343
## See also
4444

0 commit comments

Comments
 (0)