Skip to content

Commit 8d8aa5a

Browse files
authored
Tweak C5072 "Example" section
1 parent d16f4c6 commit 8d8aa5a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/error-messages/compiler-warnings/compiler-warning-c5072.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ This warning occurs when you compile with [Address Sanitizer](../../sanitizers/a
1515

1616
## Example
1717

18-
The following command line generates warning `C5072`:
18+
The following command line generates warning C5072:
1919

20-
```cpp
21-
cl /fsanitize=address /EHsc test.cpp
20+
```cmd
21+
cl /fsanitize=address /EHsc test.cpp
2222
```
2323

24-
To fix it, have the compiler generate debug information by using a switch like [`/Zi`](../../build/reference/z7-zi-zi-debug-information-format.md#zi) or [`/Z7`](../../build/reference/z7-zi-zi-debug-information-format.md#z7), like this: `cl /fsanitize=address /EHsc /Zi test.cpp`
24+
To fix it, have the compiler generate debug information by using a switch like [`/Zi`](../../build/reference/z7-zi-zi-debug-information-format.md#zi) or [`/Z7`](../../build/reference/z7-zi-zi-debug-information-format.md#z7), like this:
25+
26+
```cmd
27+
cl /fsanitize=address /EHsc /Zi test.cpp
28+
```
2529

2630
## See also
2731

0 commit comments

Comments
 (0)