Skip to content

Commit 7289731

Browse files
committed
Learn Editor: Update compiler-warning-level-1-c4165.md
1 parent 789c76f commit 7289731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ f1_keywords: ["C4165"]
66
helpviewer_keywords: ["C4165"]
77
ms.assetid: f5bed515-2290-4f88-8dab-b45d95fe26ef
88
---
9-
# Compiler Warning (level 1) C4165
9+
# Compiler Warning (level 3, off) C4165
1010

1111
'HRESULT' is being converted to 'bool'; are you sure this is what you want?
1212

1313
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.
1414

15+
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).
16+
1517
## Example
1618

1719
The following sample generates C4165

0 commit comments

Comments
 (0)