Skip to content

Commit 72f3d7e

Browse files
authored
Merge pull request #5761 from Rageking8/tweak-c5072-example-section
Tweak C5072 "Example" section
2 parents 6582476 + ac5ba48 commit 72f3d7e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Compiler Warning (level 1) C5072"
33
description: "Learn more about: Compiler Warning (level 1) C5072"
4-
ms.date: 02/09/2024
4+
ms.date: 09/10/2025
55
f1_keywords: ["C5072"]
66
helpviewer_keywords: ["C5072"]
77
---
@@ -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)