Skip to content

Commit 572c90f

Browse files
authored
Merge pull request #5517 from Rastaban/docs-editor/compiler-warnings-c4000-throug-1711494986
Update warning levels in compiler-warnings-c4000-through-c4199.md
2 parents d1849d3 + 893d26f commit 572c90f

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
---
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"
44
ms.date: "11/04/2016"
55
f1_keywords: ["C4165"]
66
helpviewer_keywords: ["C4165"]
7-
ms.assetid: f5bed515-2290-4f88-8dab-b45d95fe26ef
87
---
9-
# Compiler Warning (level 1) C4165
8+
# Compiler Warning (level 3, off) C4165
109

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?
1211

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).
1415

1516
## Example
1617

17-
The following sample generates C4165
18+
The following sample generates C4165:
1819

1920
```cpp
2021
// C4165.cpp
21-
// compile with: /W1
22+
// compile with: /W3
2223
#include <windows.h>
23-
#pragma warning(1:4165)
24+
#pragma warning(3:4165)
2425

2526
extern HRESULT hr;
2627
int main() {

docs/error-messages/compiler-warnings/compiler-warnings-c4000-through-c4199.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The articles in this section of the documentation explain a subset of the warnin
1515

1616
|Warning|Message|
1717
|-------------|-------------|
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|
1919
|[Compiler warning (level 4) C4001](../../error-messages/compiler-warnings/compiler-warning-level-4-c4001.md)|nonstandard extension 'single line comment' was used|
2020
|[Compiler warning (level 1) C4002](compiler-warning-level-1-c4002.md)|too many actual parameters for macro 'identifier'|
2121
|[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
7070
|[Compiler warning (level 3) C4073](../../error-messages/compiler-warnings/compiler-warning-level-3-c4073.md)|initializers put in library initialization area|
7171
|[Compiler warning (level 1) C4074](../../error-messages/compiler-warnings/compiler-warning-level-1-c4074.md)|initializers put in compiler reserved initialization area|
7272
|[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'|
7474
|[Compiler warning (level 1) C4077](compiler-warning-level-1-c4077.md)|unknown check_stack option|
7575
|[Compiler warning (level 1) C4079](../../error-messages/compiler-warnings/compiler-warning-level-1-c4079.md)|unexpected token 'token'|
7676
|[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
135135
|[Compiler warning (level 1) C4162](../../error-messages/compiler-warnings/compiler-warning-level-1-c4162.md)|'identifier': no function with C linkage found|
136136
|[Compiler warning (level 1) C4163](compiler-warning-level-1-c4163.md)|'identifier': not available as an intrinsic function|
137137
|[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?|
139139
|[Compiler warning (level 1) C4166](compiler-warning-level-1-c4166.md)|illegal calling convention for constructor/destructor|
140140
|[Compiler warning (level 1) C4167](compiler-warning-level-1-c4167.md)|'function': only available as an intrinsic function|
141141
|[Compiler warning (level 1) C4168](compiler-warning-level-1-c4168.md)|compiler limit: out of debugger types, delete program database 'database' and rebuild|

docs/error-messages/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3403,7 +3403,7 @@ items:
34033403
href: compiler-warnings/compiler-warning-level-1-c4163.md
34043404
- name: Compiler warning (level 1) C4164
34053405
href: compiler-warnings/compiler-warning-level-1-c4164.md
3406-
- name: Compiler warning (level 1) C4165
3406+
- name: Compiler warning (level 3, off) C4165
34073407
href: compiler-warnings/compiler-warning-level-1-c4165.md
34083408
- name: Compiler warning (level 1) C4166
34093409
href: compiler-warnings/compiler-warning-level-1-c4166.md

0 commit comments

Comments
 (0)