Skip to content

Commit 1e8d56a

Browse files
authored
Merge pull request MicrosoftDocs#1712 from NextTurn/cpp-12
Add language identifiers
2 parents c386ad9 + 688deda commit 1e8d56a

20 files changed

Lines changed: 22 additions & 22 deletions

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4018.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This warning may be fixed if you cast one of the two types when testing signed a
1515

1616
The following sample generates C4018:
1717

18-
```
18+
```cpp
1919
// C4018.cpp
2020
// compile with: /W3
2121
int main() {

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4073.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ initializers put in library initialization area
1111

1212
Only third-party library developers should use the library initialization area, which is specified by [#pragma init_seg](../../preprocessor/init-seg.md). The following sample generates C4073:
1313

14-
```
14+
```cpp
1515
// C4073.cpp
1616
// compile with: /W3
1717
#pragma init_seg(lib) // C4073

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4101.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.assetid: d98563cd-9dce-4aae-8f12-bd552a4ea677
1111

1212
The local variable is never used. This warning will occur in the obvious situation:
1313

14-
```
14+
```cpp
1515
// C4101a.cpp
1616
// compile with: /W3
1717
int main() {
@@ -21,7 +21,7 @@ int i; // C4101
2121

2222
However, this warning will also occur when calling a **static** member function through an instance of the class:
2323

24-
```
24+
```cpp
2525
// C4101b.cpp
2626
// compile with: /W3
2727
struct S {

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4102.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The label is defined but never referenced. The compiler ignores the label.
1313

1414
The following sample generates C4102:
1515

16-
```
16+
```cpp
1717
// C4102.cpp
1818
// compile with: /W3
1919
int main() {

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4191.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This warning is off by default. See [Compiler Warnings That Are Off by Default](
2929

3030
The following sample generates C4191:
3131

32-
```
32+
```cpp
3333
// C4191.cpp
3434
// compile with: /W3 /clr
3535
#pragma warning(default: 4191)

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4197.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The compiler detected a cast to an r-value type which is qualified with [volatil
1313

1414
The following sample generates C4197:
1515

16-
```
16+
```cpp
1717
// C4197.cpp
1818
// compile with: /W3
1919
#include <stdio.h>

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4240.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Under ANSI compatibility ([/Za](../../build/reference/za-ze-disable-language-ext
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4240.cpp
1818
// compile with: /W3
1919
class X

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4243.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A pointer to a derived class is converted to a pointer to a base class, but the
1313

1414
The following sample generates C4243:
1515

16-
```
16+
```cpp
1717
// C4243.cpp
1818
// compile with: /W3
1919
// C4243 expected

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4265.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This warning is off by default. See [Compiler Warnings That Are Off by Default](
1515

1616
The following sample generates C4265:
1717

18-
```
18+
```cpp
1919
// C4265.cpp
2020
// compile with: /W3 /c
2121
#pragma warning(default : 4265)

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4267.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To fix this warning, use `size_t` instead of `type`. Alternatively, use an integ
1717

1818
The following example generates C4267.
1919

20-
```
20+
```cpp
2121
// C4267.cpp
2222
// compile by using: cl /W4 C4267.cpp
2323
void Func1(short) {}

0 commit comments

Comments
 (0)