Skip to content

Commit d8ab280

Browse files
authored
Add leading example sentence for warning references in range [C4161, C4200]
1 parent 12710cb commit d8ab280

9 files changed

+18
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ To avoid this warning, remove the **#pragma function**.
1717

1818
## Example
1919

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

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

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

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The **component** pragma contains an invalid subcomponent. To exclude references
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ A case constant in a **`switch`** expression does not fit in the type to which i
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ In Visual Studio 2017 version 15.5, the C compiler no longer emits warnings C400
1919

2020
## Example
2121

22+
The following example generates C4179:
23+
2224
```C
2325
/* C only */
2426
#pragma warning(disable:4001) // C4619

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ A qualifier, such as **`const`**, is applied to a function type defined by **`ty
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The attribute is not a valid attribute of `#import`. It is ignored.
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ A `#import` attribute has the wrong number of arguments.
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ A function or pointer to function has a UDT (user-defined type, which is a class
1919

2020
## Example
2121

22+
The following example generates C4190:
23+
2224
```cpp
2325
// C4190.cpp
2426
// compile with: /W1 /LD

0 commit comments

Comments
 (0)