Skip to content

Commit aee3048

Browse files
authored
Add leading example sentence for warning references in range [C4271, C4310]
1 parent 758d00e commit aee3048

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The specified exception type is handled by a previous handler. The type for the
1515

1616
## Example
1717

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ C4275 can be ignored in Visual C++ if you are deriving from a type in the C++ St
3131

3232
## Example
3333

34+
The following example generates C4275:
35+
3436
```cpp
3537
// C4275.cpp
3638
// compile with: /EHsc /MTd /W2 /c

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The [`/sdl` (Enable Additional Security Checks)](../../build/reference/sdl-enabl
1717

1818
## Example
1919

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

0 commit comments

Comments
 (0)