Skip to content

Commit 6e99ee2

Browse files
authored
Add leading example sentence for warning references in range [C4121, C4160]
1 parent 4c96416 commit 6e99ee2

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4138.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The closing-comment delimiter is not preceded by an opening-comment delimiter. T
1515

1616
## Example
1717

18+
The following example generates C4138:
19+
1820
```cpp
1921
// C4138a.cpp
2022
// compile with: /W1

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4141.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ helpviewer_keywords: ["C4141"]
1111
1212
## Example
1313

14+
The following example generates C4141:
15+
1416
```cpp
1517
// C4141.cpp
1618
// compile with: /W1 /LD

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4154.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You cannot use **`delete`** on an array, so the compiler converts the array to a
1515

1616
## Example
1717

18+
The following example generates C4154:
19+
1820
```cpp
1921
// C4154.cpp
2022
// compile with: /c /W1

docs/error-messages/compiler-warnings/compiler-warning-level-2-c4156.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This warning occurs only under Microsoft extensions (/Ze).
1717

1818
## Example
1919

20+
The following example generates C4156:
21+
2022
```cpp
2123
// C4156.cpp
2224
// compile with: /W2

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4125.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The compiler evaluates the octal number without the decimal digit and assumes th
1515

1616
## Example
1717

18+
The following example generates C4125:
19+
1820
```cpp
1921
// C4125a.cpp
2022
// compile with: /W4

0 commit comments

Comments
 (0)