Skip to content

Commit 917caea

Browse files
Merge pull request #6067 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-04 17:30 UTC
2 parents 039329a + f2a43d4 commit 917caea

File tree

62 files changed

+359
-258
lines changed

Some content is hidden

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

62 files changed

+359
-258
lines changed

docs/error-messages/compiler-warnings/c4834.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To turn off the warning for an entire project in the Visual Studio IDE:
3030

3131
## Example
3232

33-
This sample generates C4834, and shows four ways to fix it:
33+
This example generates C4834, and shows four ways to fix it:
3434

3535
```cpp
3636
// C4834.cpp

docs/error-messages/compiler-warnings/c4841.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 4) C4841"
32
title: "Compiler Warning (level 4) C4841"
3+
description: "Learn more about: Compiler Warning (level 4) C4841"
44
ms.date: 05/03/2021
55
f1_keywords: ["C4841"]
66
helpviewer_keywords: ["C4841"]

docs/error-messages/compiler-warnings/c4843.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 4) C4843"
32
title: "Compiler Warning (level 4) C4843"
3+
description: "Learn more about: Compiler Warning (level 4) C4843"
44
ms.date: 05/03/2021
55
f1_keywords: ["C4843"]
66
helpviewer_keywords: ["C4843"]
@@ -17,7 +17,7 @@ This warning is new in Visual Studio 2017 version 15.5. For information on how t
1717

1818
## Example
1919

20-
This sample shows several **`catch`** statements that cause C4843:
20+
This example shows several **`catch`** statements that cause C4843:
2121

2222
```cpp
2323
// C4843_warning.cpp

docs/error-messages/compiler-warnings/c4866.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 4) C4866"
32
title: "Compiler Warning (Level 4) C4866"
4-
ms.date: "09/30/2018"
3+
description: "Learn more about: Compiler Warning (level 4) C4866"
4+
ms.date: 09/30/2018
55
f1_keywords: ["C4866"]
66
helpviewer_keywords: ["C4866"]
77
---
@@ -25,11 +25,11 @@ This warning was introduced in Visual Studio 2017 version 15.9 as a result of co
2525

2626
To resolve this warning, first consider whether left-to-right evaluation of the operator elements is necessary, such as when evaluation of the elements might produce order-dependent side-effects. In many cases, the order in which elements are evaluated does not have an observable effect.
2727

28-
If the order of evaluation must be left-to-right, consider whether you can pass the elements by **`const`** reference instead. This change eliminates the warning in the following code sample.
28+
If the order of evaluation must be left-to-right, consider whether you can pass the elements by **`const`** reference instead. This change eliminates the warning in the following code example.
2929

3030
## Example
3131

32-
This sample generates C4866, and shows a way to fix it:
32+
This example generates C4866, and shows a way to fix it:
3333

3434
```cpp
3535
// C4866.cpp

docs/error-messages/compiler-warnings/compiler-warning-c4746.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Warning C4746"
32
title: "Compiler Warning C4746"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning C4746"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4746"]
66
helpviewer_keywords: ["C4746"]
7-
ms.assetid: 5e79ab46-6031-499a-a986-716c866b6c0e
87
---
98
# Compiler Warning C4746
109

11-
volatile access of '\<expression>' is subject to /volatile:[iso\|ms] setting; consider using __iso_volatile_load/store intrinsic functions.
10+
> volatile access of '\<expression>' is subject to /volatile:[iso\|ms] setting; consider using __iso_volatile_load/store intrinsic functions.
11+
12+
## Remarks
1213

1314
C4746 is emitted whenever a volatile variable is accessed directly. It's intended to help developers identify code locations that are affected by the specific volatile model currently specified (which can be controlled with the [`/volatile`](../../build/reference/volatile-volatile-keyword-interpretation.md) compiler option). In particular, it can be useful in locating compiler-generated hardware memory barriers when `/volatile:ms` is used.
1415

docs/error-messages/compiler-warnings/compiler-warning-c4867.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Warning C4867"
32
title: "Compiler Warning C4867"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning C4867"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4867"]
66
helpviewer_keywords: ["C4867"]
7-
ms.assetid: 8a257d70-c3a7-462d-b285-e57c952a8bf7
87
---
98
# Compiler Warning C4867
109

11-
'function': function call missing argument list; use 'call' to create a pointer to member
10+
> 'function': function call missing argument list; use 'call' to create a pointer to member
11+
12+
## Remarks
1213

1314
A pointer to member function was initialized incorrectly.
1415

@@ -18,7 +19,7 @@ This warning is always issued as an error. Use the [warning](../../preprocessor/
1819

1920
## Example
2021

21-
The following sample generates C4867.
22+
The following example generates C4867.
2223

2324
```cpp
2425
// C4867.cpp

docs/error-messages/compiler-warnings/compiler-warning-c4868.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 4) C4868"
32
title: "Compiler Warning C4868"
4-
ms.date: "10/26/2017"
3+
description: "Learn more about: Compiler Warning (level 4) C4868"
4+
ms.date: 10/26/2017
55
f1_keywords: ["C4868"]
66
helpviewer_keywords: ["C4868"]
7-
ms.assetid: fc6aa7e5-34dd-4ec2-88bd-16e430361dc7
87
---
98
# Compiler Warning (level 4) C4868
109

1110
> '_file_(*line_number*)' compiler may not enforce left-to-right evaluation order in braced initializer list
1211
12+
## Remarks
13+
1314
The elements of a braced initializer list are to be evaluated in left-to-right order. There are two cases in which the compiler is unable to guarantee this order: the first is when some of the elements are objects passed by value; the second is when compiling with `/clr` and some of the elements are fields of objects or are array elements. When the compiler can't guarantee left-to-right evaluation it emits warning C4868.
1415

1516
This warning can be generated as a result of compiler conformance work that was done for Visual Studio 2015 Update 2. Code that compiled prior to Visual Studio 2015 Update 2 can now generate C4868.
@@ -18,11 +19,11 @@ This warning is off by default. Use `/Wall` to activate this warning.
1819

1920
To resolve this warning, first consider whether left-to-right evaluation of the initializer list elements is necessary, such as when evaluation of the elements might produce order-dependent side-effects. In many cases, the order in which elements are evaluated does not have an observable effect.
2021

21-
If the order of evaluation must be left-to-right, consider if it's possible to pass the elements by **`const`** reference instead. A change such as this eliminates the warning in the following code sample.
22+
If the order of evaluation must be left-to-right, consider if it's possible to pass the elements by **`const`** reference instead. A change such as this eliminates the warning in the following code example.
2223

2324
## Example
2425

25-
This sample generates C4868, and shows a way to fix it:
26+
This example generates C4868, and shows a way to fix it:
2627

2728
```cpp
2829
// C4868.cpp

docs/error-messages/compiler-warnings/compiler-warning-c4936.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: Compiler Warning C4936"
32
title: "Compiler Warning C4936"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning C4936"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4936"]
66
helpviewer_keywords: ["C4936"]
7-
ms.assetid: 6676de35-bf1b-4d0b-a70f-b5734130336c
87
---
98
# Compiler Warning C4936
109

@@ -22,7 +21,7 @@ C4936 is always issued as an error. You can disable C4936 with the [warning](..
2221

2322
## Example
2423

25-
The following sample generates C4936:
24+
The following example generates C4936:
2625

2726
```cpp
2827
// C4936.cpp

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4711"
32
title: "Compiler Warning (level 1) C4711"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4711"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4711"]
66
helpviewer_keywords: ["C4711"]
7-
ms.assetid: 270506ab-fead-4328-b714-2978113be238
87
---
98
# Compiler Warning (level 1) C4711
109

11-
function 'function' selected for inline expansion
10+
> function 'function' selected for inline expansion
11+
12+
## Remarks
1213

1314
The compiler performed inlining on the given function, although it was not marked for inlining.
1415

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4715"
32
title: "Compiler Warning (level 1) C4715"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4715"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4715"]
66
helpviewer_keywords: ["C4715"]
7-
ms.assetid: 1c819bf7-0d8b-4f5e-b338-9cc292870439
87
---
98
# Compiler Warning (level 1) C4715
109

11-
'function' : not all control paths return a value
10+
> 'function' : not all control paths return a value
11+
12+
## Remarks
1213

1314
The specified function can potentially not return a value.
1415

1516
## Example
1617

18+
The following example generates C4715:
19+
1720
```cpp
1821
// C4715a.cpp
1922
// compile with: /W1 /LD

0 commit comments

Comments
 (0)