Skip to content

Commit 331a80c

Browse files
committed
Add language identifiers
1 parent 7f45f54 commit 331a80c

103 files changed

Lines changed: 220 additions & 220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Use the [warning](../../preprocessor/warning.md) pragma to suppress this warning
1717

1818
The following sample generates C4521.
1919

20-
```
20+
```cpp
2121
// C4521.cpp
2222
// compile with: /EHsc /W3
2323
#include <iostream>
@@ -36,4 +36,4 @@ int main() {
3636
const A o3; // Calls default constructor.
3737
A o4( o3 ); // Calls A( const A& ).
3838
}
39-
```
39+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Use the [warning](../../preprocessor/warning.md) pragma to suppress this warning
1717

1818
The following sample generates C4522.
1919

20-
```
20+
```cpp
2121
// C4522.cpp
2222
// compile with: /EHsc /W3
2323
#include <iostream>
@@ -35,4 +35,4 @@ int main() {
3535
const A o3;
3636
o1 = o3;
3737
}
38-
```
38+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For more information, see [Classes and Structs](../../extensions/classes-and-str
1515

1616
The following sample generates C4534:
1717

18-
```
18+
```cpp
1919
// C4534.cpp
2020
// compile with: /W3 /clr /WX
2121
value class MyClass {
@@ -30,4 +30,4 @@ int main() {
3030
MyClass ^ xx = gcnew MyClass;
3131
xx->ii = 0;
3232
}
33-
```
33+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The use of [_set_se_translator](../../c-runtime-library/reference/set-se-transla
1515

1616
The following sample generates C4535.
1717

18-
```
18+
```cpp
1919
// C4535.cpp
2020
// compile with: /W3 /EHsc /c
2121
// C4535 expected
@@ -61,4 +61,4 @@ void trans_func( unsigned int u, EXCEPTION_POINTERS* pExp ) {
6161
printf_s( "In trans_func.\n" );
6262
throw SE_Exception();
6363
}
64-
```
64+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ A qualifier keyword was applied to an array incorrectly. For more information, s
1313

1414
The following sample generates C4538:
1515

16-
```
16+
```cpp
1717
// C4538.cpp
1818
// compile with: /clr /W3 /LD
1919
const array<int> ^f1(); // C4538
2020
array<const int> ^f2(); // OK
21-
```
21+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.assetid: 55bb68f0-2e80-4330-8921-51083c4f8d53
1111

1212
The following sample generates C4554:
1313

14-
```
14+
```cpp
1515
// C4554.cpp
1616
// compile with: /W3 /WX
1717
int main() {
@@ -20,4 +20,4 @@ int main() {
2020
// probably intended (a << b) + c,
2121
// but will get a << (b + c)
2222
}
23-
```
23+
```

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

Lines changed: 2 additions & 2 deletions
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 C4557:
1717

18-
```
18+
```cpp
1919
// C4557.cpp
2020
// compile with: /W3
2121
#pragma warning(default : 4557)
@@ -24,4 +24,4 @@ int main()
2424
int i;
2525
__assume(i++); // C4557
2626
}
27-
```
27+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ A type that contains [abstract](../../extensions/abstract-cpp-component-extensio
1515

1616
The following sample generates C4570.
1717

18-
```
18+
```cpp
1919
// C4570.cpp
2020
// compile with: /clr /W3 /c
2121
ref struct X { // C4570
2222
// try the following line instead
2323
// ref class X abstract {
2424
virtual void f() abstract;
2525
};
26-
```
26+
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Two members of the same union were initialized in an initialization list. You ca
1313

1414
The following sample generates C4608:
1515

16-
```
16+
```cpp
1717
// C4608.cpp
1818
// compile with: /W3 /c
1919
class X {
@@ -37,4 +37,4 @@ private:
3737
double m_number;
3838
char * m_string;
3939
};
40-
```
40+
```

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

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

1616
The following sample generates C4619:
1717

18-
```
18+
```cpp
1919
// C4619.cpp
2020
// compile with: /W3 /c
2121
#pragma warning(default : 4619)
2222
#pragma warning(disable : 4354) // C4619, C4354 does not exist
23-
```
23+
```

0 commit comments

Comments
 (0)