Skip to content

Commit fe3aea6

Browse files
TylerMSFTTylerMSFT
authored andcommitted
wording
1 parent ba85a39 commit fe3aea6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ helpviewer_keywords: ["c5072"]
99

1010
> ASAN enabled without debug information emission. Enable debug info for better ASAN error reporting
1111
12-
This warning occurs when you compile with [Address Sanitizer](/cpp/sanitizers/asan) (ASAN) turned on, but you don't instruct the compiler to emit debug info. ASAN uses debug info to provide better diagnostics.
12+
This warning occurs when you compile with [Address Sanitizer](/cpp/sanitizers/asan) (ASAN) turned on, but you don't also instruct the compiler to emit debug info. ASAN uses debug info to provide better diagnostics.
1313

1414
## Example
1515

@@ -19,7 +19,7 @@ The following command line generates warning `C5072`:
1919
cl /fsanitize=address /EHsc test.cpp
2020
```
2121

22-
To fix it, add [`/Zi`](/cpp/build/reference/z7-zi-zi-debug-information-format#zi) or [`/Z7`](/cpp/build/reference/z7-zi-zi-debug-information-format#z7), like this: `cl /fsanitize=address /EHsc /Zi test.cpp`
22+
To fix it, have the compiler generate debug information by using a switch like [`/Zi`](/cpp/build/reference/z7-zi-zi-debug-information-format#zi) or [`/Z7`](/cpp/build/reference/z7-zi-zi-debug-information-format#z7), like this: `cl /fsanitize=address /EHsc /Zi test.cpp`
2323

2424
## See also
2525

docs/error-messages/compiler-warnings/compiler-warnings-c4800-through-c4999.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The articles in this section of the documentation explain a subset of the warnin
173173
| Compiler warning (level 4) C5061 | the use of a comma operator as a subscript expression has been deprecated |
174174
| Compiler warning (level 4) C5062 | enum direct list initialization between 'type-1' and 'type-2' is no longer supported |
175175
| Compiler warning (level 1) C5063 | '`std::is_constant_evaluated`' always evaluates to true in manifestly constant-evaluated expressions |
176-
| Compiler warning (level 1) C5072 | ASAN enabled without debug information emission. Enable debug info for better ASAN error reporting |
176+
| [Compiler warning (level 1) C5072](compiler-warning-c5072.md) | ASAN enabled without debug information emission. Enable debug info for better ASAN error reporting |
177177
| Compiler warning (level 1) C5081 | Secure hotpatch is not supported with `/GENPROFILE`, `/FASTGENPROFILE` or `/LTCG:PGI`, disabling secure hotpatch. |
178178
| Compiler warning (level 1) C5100 | `__VA_ARGS__` is reserved for use in variadic macros |
179179
| Compiler warning (level 1) C5101 | use of preprocessor directive in function-like macro argument list is undefined behavior |

0 commit comments

Comments
 (0)