Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/error-messages/compiler-warnings/compiler-warning-c5072.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Compiler Warning (level 1) C5072"
description: "Learn more about: Compiler Warning (level 1) C5072"
ms.date: 02/09/2024
ms.date: 09/10/2025
f1_keywords: ["C5072"]
helpviewer_keywords: ["C5072"]
---
Expand All @@ -15,13 +15,17 @@ This warning occurs when you compile with [Address Sanitizer](../../sanitizers/a

## Example

The following command line generates warning `C5072`:
The following command line generates warning C5072:

```cpp
cl /fsanitize=address /EHsc test.cpp
```cmd
cl /fsanitize=address /EHsc test.cpp
```

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`
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:

```cmd
cl /fsanitize=address /EHsc /Zi test.cpp
```

## See also

Expand Down