Skip to content

Commit e4ab56a

Browse files
authored
Add leading example sentence for warning references in range [C4081, C4120]
1 parent f223e62 commit e4ab56a

6 files changed

+12
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The compiler expected a different token in this context.
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ An identifier occurs in the wrong place in a **#pragma** statement.
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The pragma parameter does not have the required value (1, 2, 4, 8, or 16).
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This warning is for the C compiler.
1717

1818
## Example
1919

20+
The following example generates C4087:
21+
2022
```c
2123
// C4087.c
2224
// compile with: /W1

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The pragma containing the unexpected identifier is ignored.
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The compiler detected an empty declaration using an untagged structure, union, o
1515

1616
## Example
1717

18+
The following example generates C4094:
19+
1820
```cpp
1921
// C4094.cpp
2022
// compile with: /W2

0 commit comments

Comments
 (0)