Skip to content

Commit 3fc2d4a

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#1741 from NextTurn/cpp-15
Add language identifiers
2 parents 3e4b0a8 + 7cefcd7 commit 3fc2d4a

20 files changed

Lines changed: 22 additions & 22 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can use casts on the left side
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4213.c
1818
// compile with: /W4
1919
void *a;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), bitfield structure members can be o
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4214.c
1818
// compile with: /W4
1919
struct bitfields

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under the default Microsoft extensions (/Ze), a pointer to a function matches a
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4220.c
1818
// compile with: /W4
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can initialize an aggregate typ
1313

1414
## Example
1515

16-
```
16+
```c
1717
// C4221.c
1818
// compile with: /W4
1919
struct S

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under Microsoft extensions (/Ze), you can give a nonstatic value as the address
1313

1414
The following sample generates C4232:
1515

16-
```
16+
```c
1717
// C4232.c
1818
// compile with: /W4 /Ze /c
1919
int __declspec(dllimport) f();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler does not yet implement the keyword you used.
1313

1414
This warning is automatically promoted to an error. If you wish to modify this behavior, use [#pragma warning](../../preprocessor/warning.md). For example, to make C4234 into a level 4 warning issue,
1515

16-
```
16+
```cpp
1717
#pragma warning(2:4234)
1818
```
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler does not support the keyword you used.
1313

1414
This warning is automatically promoted to an error. If you wish to modify this behavior, use [#pragma warning](../../preprocessor/warning.md). For example, to make C4235 into a level 2 warning, use the following line of code
1515

16-
```
16+
```cpp
1717
#pragma warning(2:4235)
1818
```
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For compatibility with previous versions of Visual C++, Microsoft extensions (**
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4238.cpp
1818
// compile with: /W4 /c
1919
struct C {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This type conversion is not allowed by the C++ standard, but it is permitted her
1515

1616
The following sample generates C4239.
1717

18-
```
18+
```cpp
1919
// C4239.cpp
2020
// compile with: /W4 /c
2121
struct C {
@@ -35,7 +35,7 @@ Conversion from integral type to enum type is not strictly allowed.
3535
3636
The following sample generates C4239.
3737
38-
```
38+
```cpp
3939
// C4239b.cpp
4040
// compile with: /W4 /c
4141
enum E { value };

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For additional information on C4242, see [Common Compiler Errors](/windows/win32
1717

1818
The following sample generates C4242:
1919

20-
```
20+
```cpp
2121
// C4242.cpp
2222
// compile with: /W4
2323
#pragma warning(4:4242)

0 commit comments

Comments
 (0)