Skip to content

Commit 21992ab

Browse files
author
Colin Robertson
authored
Merge pull request #2483 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents a02fff8 + 43edd26 commit 21992ab

File tree

60 files changed

+67
-67
lines changed

Some content is hidden

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

60 files changed

+67
-67
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For additional information about common causes of warning C4311, see [Common Com
1515

1616
The following code example generates C4311 when compiled for a 64-bit target, and then demonstrates how to fix it:
1717

18-
```
18+
```cpp
1919
// C4311.cpp
2020
// compile by using: cl /W1 C4311.cpp
2121
int main() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This warning is only issued for 64-bit compilation targets. For more information
1717

1818
The following code example generates C4312 when it is compiled for 64-bit targets:
1919

20-
```
20+
```cpp
2121
// C4312.cpp
2222
// compile by using: cl /W1 /LD C4312.cpp
2323
void* f(int i) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ There is a conflict between the format specified and the value that you are pass
1515

1616
The following code sample generates C4313 when it is compiled for a 64-bit target.
1717

18-
```
18+
```cpp
1919
// C4313.cpp
2020
// Compile by using: cl /W1 C4313.cpp
2121
#include <stdio.h>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ __declspec(align()) is ignored on enum
1111

1212
Use of the [align](../../cpp/align-cpp.md) keyword of the [__declspec](../../cpp/declspec.md) modifier is not allowed on an `enum`. The following sample generates C4329:
1313

14-
```
14+
```cpp
1515
// C4329.cpp
1616
// compile with: /W1 /LD
1717
enum __declspec(align(256)) TestEnum { // C4329

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A right shift operation was too large an amount. All significant bits are shift
1515

1616
The following sample generates C4333.
1717

18-
```
18+
```cpp
1919
// C4333.cpp
2020
// compile with: /c /W1
2121
unsigned shift8 (unsigned char c) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The [typename](../../cpp/typename.md) keyword is required if a dependent name is
1313

1414
The following sample generates C4346:
1515

16-
```
16+
```cpp
1717
// C4346.cpp
1818
// compile with: /WX /LD
1919
template<class T>
@@ -26,7 +26,7 @@ struct C {
2626
2727
The following samples shows other examples where the **typename** keyword is required:
2828
29-
```
29+
```cpp
3030
// C4346b.cpp
3131
// compile with: /LD /W1
3232
template<class T>
@@ -47,7 +47,7 @@ struct M : public L<typename T::Type, T::Value>
4747

4848
and this,
4949

50-
```
50+
```cpp
5151
// C4346c.cpp
5252
// compile with: /LD /WX
5353
struct Y {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A template parameter was redefined.
1313

1414
The following sample generates C4348:
1515

16-
```
16+
```cpp
1717
// C4348.cpp
1818
// compile with: /LD /W1
1919
template <class T=int> struct A; // forward declaration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You cannot use the constant zero (0) as a function expression. For more informat
1313

1414
The following sample generates C4353:
1515

16-
```
16+
```cpp
1717
// C4353.cpp
1818
// compile with: /W1
1919
void MyPrintf(void){};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Two delegates were combined and the return value is not void. If two delegates w
1313

1414
The following sample generates C4358:
1515

16-
```
16+
```cpp
1717
// C4358.cpp
1818
// compile with: /clr /W1
1919
delegate int D();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For more information, see [Friend Assemblies (C++)](../../dotnet/friend-assembli
1717

1818
The following sample creates a component.
1919

20-
```
20+
```cpp
2121
// C4364.cpp
2222
// compile with: /clr /LD
2323
ref class A {};
@@ -27,7 +27,7 @@ ref class A {};
2727
2828
The following sample generates C4364.
2929
30-
```
30+
```cpp
3131
// C4364_b.cpp
3232
// compile with: /clr /W1 /c
3333
#using " C4364.dll"

0 commit comments

Comments
 (0)