Skip to content

Commit 12eb4b8

Browse files
authored
Replace CL invocation blockquotes with code blocks in _SCL_SECURE_NO_WARNINGS topic
1 parent 037dd50 commit 12eb4b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ Other ways to disable warning C4996 include:
2222

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

25-
> cl /D_SCL_SECURE_NO_WARNINGS [other compiler options] myfile.cpp
25+
```cmd
26+
cl /D_SCL_SECURE_NO_WARNINGS [other compiler options] myfile.cpp
27+
```
2628

2729
- Using the [`/w`](../build/reference/compiler-option-warning-level.md) compiler option:
2830

29-
> cl /wd4996 [other compiler options] myfile.cpp
31+
```cmd
32+
cl /wd4996 [other compiler options] myfile.cpp
33+
```
3034

3135
- Using the [`#pragma warning`](../preprocessor/warning.md) directive:
3236

@@ -36,7 +40,9 @@ Other ways to disable warning C4996 include:
3640

3741
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:
3842

39-
> cl /w44996 [other compiler options] myfile.cpp
43+
```cmd
44+
cl /w44996 [other compiler options] myfile.cpp
45+
```
4046

4147
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).
4248

0 commit comments

Comments
 (0)