You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warning-level-1-c4165.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,27 @@
1
1
---
2
-
description: "Learn more about: Compiler Warning (level 1) C4165"
3
-
title: "Compiler Warning (level 1) C4165"
2
+
description: "Learn more about: Compiler Warning (level 3, off) C4165"
3
+
title: "Compiler Warning (level 3, off) C4165"
4
4
ms.date: "11/04/2016"
5
5
f1_keywords: ["C4165"]
6
6
helpviewer_keywords: ["C4165"]
7
-
ms.assetid: f5bed515-2290-4f88-8dab-b45d95fe26ef
8
7
---
9
-
# Compiler Warning (level 1) C4165
8
+
# Compiler Warning (level 3, off) C4165
10
9
11
-
'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?
12
11
13
-
When using an HRESULT in an [if](../../cpp/if-else-statement-cpp.md) statement, the HRESULT will be converted to a [bool](../../cpp/bool-cpp.md) unless you explicitly test for the variable as an HRESULT. This warning is off by default.
12
+
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`.
13
+
14
+
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).
Copy file name to clipboardExpand all lines: docs/error-messages/compiler-warnings/compiler-warnings-c4000-through-c4199.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The articles in this section of the documentation explain a subset of the warnin
15
15
16
16
|Warning|Message|
17
17
|-------------|-------------|
18
-
|Compiler warning C4000|UNKNOWN WARNING<br /><br /> Please choose the Technical Support command on the Visual C++<br /><br/> Help menu, or open the Technical Support help file for more information|
18
+
|Compiler warning C4000|UNKNOWN WARNING<br/> Please choose the Technical Support command on the Visual C++<br/> Help menu, or open the Technical Support help file for more information|
19
19
|[Compiler warning (level 4) C4001](../../error-messages/compiler-warnings/compiler-warning-level-4-c4001.md)|nonstandard extension 'single line comment' was used|
20
20
|[Compiler warning (level 1) C4002](compiler-warning-level-1-c4002.md)|too many actual parameters for macro 'identifier'|
21
21
|[Compiler warning (level 1) C4003](../../error-messages/compiler-warnings/compiler-warning-level-1-c4003.md)|not enough actual parameters for macro 'identifier'|
@@ -70,7 +70,7 @@ The articles in this section of the documentation explain a subset of the warnin
70
70
|[Compiler warning (level 3) C4073](../../error-messages/compiler-warnings/compiler-warning-level-3-c4073.md)|initializers put in library initialization area|
71
71
|[Compiler warning (level 1) C4074](../../error-messages/compiler-warnings/compiler-warning-level-1-c4074.md)|initializers put in compiler reserved initialization area|
72
72
|[Compiler warning (level 1) C4075](compiler-warning-level-1-c4075.md)|initializers put in unrecognized initialization area|
73
-
|[Compiler warning (level 1) C4076](compiler-warning-level-1-c4076.md)|'type_modifier': can not be used with type 'typename'|
73
+
|[Compiler warning (level 1) C4076](compiler-warning-level-1-c4076.md)|'type_modifier': can't be used with type 'typename'|
|[Compiler warning (level 1) C4080](compiler-warning-level-1-c4080.md)|expected identifier for segment name; found 'symbol'|
@@ -135,7 +135,7 @@ The articles in this section of the documentation explain a subset of the warnin
135
135
|[Compiler warning (level 1) C4162](../../error-messages/compiler-warnings/compiler-warning-level-1-c4162.md)|'identifier': no function with C linkage found|
136
136
|[Compiler warning (level 1) C4163](compiler-warning-level-1-c4163.md)|'identifier': not available as an intrinsic function|
137
137
|[Compiler warning (level 1) C4164](compiler-warning-level-1-c4164.md)|'function': intrinsic function not declared|
138
-
|[Compiler warning (level 1) C4165](compiler-warning-level-1-c4165.md)|'HRESULT' is being converted to 'bool'; are you sure this is what you want?|
138
+
|[Compiler warning (level 3, off) C4165](compiler-warning-level-1-c4165.md)|'HRESULT' is being converted to 'bool'; are you sure this is what you want?|
139
139
|[Compiler warning (level 1) C4166](compiler-warning-level-1-c4166.md)|illegal calling convention for constructor/destructor|
140
140
|[Compiler warning (level 1) C4167](compiler-warning-level-1-c4167.md)|'function': only available as an intrinsic function|
141
141
|[Compiler warning (level 1) C4168](compiler-warning-level-1-c4168.md)|compiler limit: out of debugger types, delete program database 'database' and rebuild|
0 commit comments