Skip to content

Commit caca6d7

Browse files
authored
Merge pull request #5711 from Rageking8/structure-warning-references-in-range-c4161-c4200
Structure warning references in range [C4161, C4200]
2 parents b345eb1 + 0c5741f commit caca6d7

26 files changed

+161
-100
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4162"
32
title: "Compiler Warning (level 1) C4162"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4162"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4162"]
66
helpviewer_keywords: ["C4162"]
7-
ms.assetid: 21ae3c92-501d-4689-ad7d-13753cb65eff
87
---
98
# Compiler Warning (level 1) C4162
109

11-
'identifier' : no function with C linkage found
10+
> 'identifier' : no function with C linkage found
11+
12+
## Remarks
1213

1314
A function with C linkage is declared but cannot be found.
1415

1516
To resolve this warning, compile in a .c file (invoke the C compiler). If you must invoke the C++ compiler, place extern "C" before the function declaration.
1617

17-
The following sample generates C4162
18+
## Example
19+
20+
The following example generates C4162:
1821

1922
```cpp
2023
// C4162.cpp

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4163"
32
title: "Compiler Warning (level 1) C4163"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4163"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4163"]
66
helpviewer_keywords: ["C4163"]
7-
ms.assetid: b08413fd-03fc-4f41-9167-a98976ac12f2
87
---
98
# Compiler Warning (level 1) C4163
109

11-
'identifier' : not available as an intrinsic function
10+
> 'identifier' : not available as an intrinsic function
11+
12+
## Remarks
1213

1314
The specified function cannot be used as an [intrinsic](../../preprocessor/intrinsic.md) function. The compiler ignores the invalid function name.
1415

15-
The following sample generates C4163:
16+
## Example
17+
18+
The following example generates C4163:
1619

1720
```cpp
1821
// C4163.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) C4164"
32
title: "Compiler Warning (level 1) C4164"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4164"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4164"]
66
helpviewer_keywords: ["C4164"]
7-
ms.assetid: 6d7e4a36-8227-4419-880f-44576033493e
87
---
98
# Compiler Warning (level 1) C4164
109

11-
'identifier' : intrinsic function not declared
10+
> 'identifier' : intrinsic function not declared
11+
12+
## Remarks
1213

1314
The specified intrinsic function is not declared; you may need to #include the appropriate header file.

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 3, off) C4165"
32
title: "Compiler Warning (level 3, off) C4165"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 3, off) C4165"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4165"]
66
helpviewer_keywords: ["C4165"]
77
---
88
# Compiler Warning (level 3, off) C4165
99

10-
'`HRESULT`' is being converted to '`bool`'; are you sure this is what you want?
10+
> '`HRESULT`' is being converted to '`bool`'; are you sure this is what you want?
11+
12+
## Remarks
1113

1214
When an `HRESULT` is used in an [`if`](../../cpp/if-else-statement-cpp.md) statement, the `HRESULT` is converted to a [`bool`](../../cpp/bool-cpp.md) unless you explicitly test for the variable as an `HRESULT`.
1315

1416
Warning C4165 is off by default. For more information, see [Compiler Warnings That Are Off By Default](../../preprocessor/compiler-warnings-that-are-off-by-default.md).
1517

1618
## Example
1719

18-
The following sample generates C4165:
20+
The following example generates C4165:
1921

2022
```cpp
2123
// C4165.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) C4166"
32
title: "Compiler Warning (level 1) C4166"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4166"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4166"]
66
helpviewer_keywords: ["C4166"]
7-
ms.assetid: 4e5398a1-d913-4791-a470-06fc99c36ac5
87
---
98
# Compiler Warning (level 1) C4166
109

11-
**illegal calling convention for constructor/destructor**
10+
> illegal calling convention for constructor/destructor
11+
12+
## Remarks
1213

1314
Constructors and destructors cannot have calling conventions other than the default for the platform (except when you explicitly specify **__clrcall**).

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4167"
32
title: "Compiler Warning (level 1) C4167"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4167"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4167"]
66
helpviewer_keywords: ["C4167"]
7-
ms.assetid: 74a420bd-9371-4167-b1ee-74dd8680f97b
87
---
98
# Compiler Warning (level 1) C4167
109

11-
function : only available as an intrinsic function
10+
> function : only available as an intrinsic function
11+
12+
## Remarks
1213

1314
The **#pragma function** tries to force the compiler to use a conventional call to a function that must be used in intrinsic form. The pragma is ignored.
1415

1516
To avoid this warning, remove the **#pragma function**.
1617

1718
## Example
1819

20+
The following example generates C4167:
21+
1922
```cpp
2023
// C4167.cpp
2124
// compile with: /W1
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) C4168"
32
title: "Compiler Warning (level 1) C4168"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4168"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4168"]
66
helpviewer_keywords: ["C4168"]
7-
ms.assetid: 1feefa6c-37be-4f7d-856e-f4b648f2fff8
87
---
98
# Compiler Warning (level 1) C4168
109

11-
compiler limit : out of debugger types, delete program database 'database' and rebuild
10+
> compiler limit : out of debugger types, delete program database 'database' and rebuild
11+
12+
## Remarks
1213

1314
The program database file must be rebuilt to accommodate all types in the program.

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4174"
32
title: "Compiler Warning (level 1) C4174"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4174"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4174"]
66
helpviewer_keywords: ["C4174"]
7-
ms.assetid: 63301e51-24bc-43c4-bb11-252f7d513e9e
87
---
98
# Compiler Warning (level 1) C4174
109

11-
'name' : not available as a #pragma component
10+
> 'name' : not available as a #pragma component
1211
1312
## Example
1413

14+
The following example generates C4174:
15+
1516
```cpp
1617
// C4174.cpp
1718
// compile with: /W1
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) C4175"
32
title: "Compiler Warning (level 1) C4175"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4175"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4175"]
66
helpviewer_keywords: ["C4175"]
7-
ms.assetid: 11407a07-127c-4d0d-b262-61f9f2b035ba
87
---
98
# Compiler Warning (level 1) C4175
109

11-
\#pragma component(browser, on) : browser info must initially be specified on the command line
10+
> #pragma component(browser, on) : browser info must initially be specified on the command line
11+
12+
## Remarks
1213

1314
To use [component](../../preprocessor/component.md) pragma, you must generate browse information during compilation ([/FR](../../build/reference/fr-fr-create-dot-sbr-file.md)).

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4176.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) C4176"
32
title: "Compiler Warning (level 1) C4176"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Warning (level 1) C4176"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C4176"]
66
helpviewer_keywords: ["C4176"]
7-
ms.assetid: cfffb934-219a-4a63-9df6-ba54405bf766
87
---
98
# Compiler Warning (level 1) C4176
109

11-
'subcomponent' : unknown subcomponent for #pragma component browser
10+
> 'subcomponent' : unknown subcomponent for #pragma component browser
11+
12+
## Remarks
1213

1314
The **component** pragma contains an invalid subcomponent. To exclude references to a particular name, you must use the **references** option before the name.
1415

1516
## Example
1617

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

0 commit comments

Comments
 (0)