Skip to content

Commit 4a49718

Browse files
authored
Merge pull request #5710 from Rageking8/structure-warning-references-in-range-c4121-c4160
Structure warning references in range [C4121, C4160]
2 parents 5f58482 + 6e99ee2 commit 4a49718

27 files changed

+154
-107
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4122.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) C4122"
32
title: "Compiler Warning (level 1) C4122"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4122"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4122"]
66
helpviewer_keywords: ["C4122"]
7-
ms.assetid: 9a83eb0d-8708-42f7-988a-b0b6f2f646a0
87
---
98
# Compiler Warning (level 1) C4122
109

11-
'function' : alloc_text applicable only to functions with C linkage
10+
> 'function' : alloc_text applicable only to functions with C linkage
11+
12+
## Remarks
1213

1314
The **alloc_text** pragma applies only to functions declared with **extern c**. It cannot be used with external C++ functions.
1415

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4124.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) C4124"
32
title: "Compiler Warning (level 1) C4124"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4124"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4124"]
66
helpviewer_keywords: ["C4124"]
7-
ms.assetid: c08c3a65-9584-47a1-a147-44f00c4b230e
87
---
98
# Compiler Warning (level 1) C4124
109

11-
__fastcall with stack checking is inefficient
10+
> __fastcall with stack checking is inefficient
11+
12+
## Remarks
1213

1314
The **`__fastcall`** keyword was used with stack checking enabled.
1415

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4129"
32
title: "Compiler Warning (level 1) C4129"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4129"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4129"]
66
helpviewer_keywords: ["C4129"]
7-
ms.assetid: a4190c64-4bfb-48fd-8e98-52720bc0d878
87
---
98
# Compiler Warning (level 1) C4129
109

11-
'character' : unrecognized character escape sequence
10+
> 'character' : unrecognized character escape sequence
11+
12+
## Remarks
1213

1314
The `character` following a backslash (\\) in a character or string constant is not recognized as a valid escape sequence. The backslash is ignored and not printed. The character following the backslash is printed.
1415

1516
To print a single backslash, specify a double backslash (\\\\).
1617

1718
The C++ standard, in section 2.13.2 discusses escape sequences.
1819

19-
The following sample generates C4129:
20+
## Example
21+
22+
The following example generates C4129:
2023

2124
```cpp
2225
// C4129.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4138.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) C4138"
32
title: "Compiler Warning (level 1) C4138"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4138"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4138"]
66
helpviewer_keywords: ["C4138"]
7-
ms.assetid: 65ebf929-bba0-4237-923b-c1b66adfe17d
87
---
98
# Compiler Warning (level 1) C4138
109

11-
'*/' found outside of comment
10+
> '*/' found outside of comment
11+
12+
## Remarks
1213

1314
The closing-comment delimiter is not preceded by an opening-comment delimiter. The compiler assumes a space between the asterisk (<strong>\*</strong>) and the forward slash (/).
1415

1516
## Example
1617

18+
The following example generates C4138:
19+
1720
```cpp
1821
// C4138a.cpp
1922
// compile with: /W1

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1, Error) C4141"
32
title: "Compiler Warning (level 1, Error) C4141"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1, Error) C4141"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4141"]
66
helpviewer_keywords: ["C4141"]
77
---
@@ -11,6 +11,8 @@ helpviewer_keywords: ["C4141"]
1111
1212
## Example
1313

14+
The following example generates C4141:
15+
1416
```cpp
1517
// C4141.cpp
1618
// compile with: /W1 /LD

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4142"
32
title: "Compiler Warning (level 1) C4142"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4142"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4142"]
66
helpviewer_keywords: ["C4142"]
7-
ms.assetid: 1fdfc3dc-60a2-4f00-b133-20e400f9b7a6
87
---
98
# Compiler Warning (level 1) C4142
109

11-
benign redefinition of type
10+
> benign redefinition of type
11+
12+
## Remarks
1213

1314
A type is redefined in a manner that has no effect on the generated code.
1415

@@ -18,7 +19,9 @@ To fix by checking the following possible causes:
1819

1920
- A type defined with the **`typedef`** command is redefined using different syntax.
2021

21-
The following sample generates C4142:
22+
## Example
23+
24+
The following example generates C4142:
2225

2326
```c
2427
// C4142.c
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4143"
32
title: "Compiler Warning (level 1) C4143"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4143"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4143"]
66
helpviewer_keywords: ["same_seg", "C4143"]
7-
ms.assetid: ef0bd19f-d169-4034-8710-b22971bd642d
87
---
98
# Compiler Warning (level 1) C4143
109

11-
pragma 'same_seg' not supported; use __based allocation
10+
> pragma 'same_seg' not supported; use __based allocation
11+
12+
## Remarks
1213

1314
The **#pragma same_seg** is no longer supported. Use the [__based](../../cpp/based-pointers-cpp.md) keyword instead.

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4144"
32
title: "Compiler Warning (level 1) C4144"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4144"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4144"]
66
helpviewer_keywords: ["C4144"]
7-
ms.assetid: a37b445d-dbc6-43b4-8d95-ffd0e4225464
87
---
98
# Compiler Warning (level 1) C4144
109

11-
'expression' : relational expression as switch expression
10+
> 'expression' : relational expression as switch expression
11+
12+
## Remarks
13+
14+
The specified relational expression was used as the control expression of a [switch](../../cpp/switch-statement-cpp.md) statement. The associated case statements will be offered Boolean values.
15+
16+
## Example
1217

13-
The specified relational expression was used as the control expression of a [switch](../../cpp/switch-statement-cpp.md) statement. The associated case statements will be offered Boolean values. The following sample generates C4144:
18+
The following example generates C4144:
1419

1520
```cpp
1621
// C4144.cpp

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4145"
32
title: "Compiler Warning (level 1) C4145"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4145"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4145"]
66
helpviewer_keywords: ["C4145"]
7-
ms.assetid: 0440777a-cca2-4159-aff5-e67a254ad64a
87
---
98
# Compiler Warning (level 1) C4145
109

11-
'expression1' : relational expression as switch expression; possible confusion with 'expression2'
10+
> 'expression1' : relational expression as switch expression; possible confusion with 'expression2'
11+
12+
## Remarks
1213

1314
A **`switch`** statement uses a relational expression as its control expression, which results in a Boolean value for the **`case`** statements. Did you mean *expression2*?
1415

1516
## Example
1617

17-
The following sample generates C4145:
18+
The following example generates C4145:
1819

1920
```cpp
2021
// C4145.cpp
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4153"
32
title: "Compiler Warning (level 1) C4153"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4153"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4153"]
66
helpviewer_keywords: ["C4153"]
7-
ms.assetid: 37a15754-9dba-470b-adda-c4b888064b3e
87
---
98
# Compiler Warning (level 1) C4153
109

11-
function/data pointer conversion in expression
10+
> function/data pointer conversion in expression
11+
12+
## Remarks
1213

1314
A function pointer is converted to or from a data pointer. This conversion is allowed under Microsoft extensions (/Ze) but not under ANSI C.

0 commit comments

Comments
 (0)