Skip to content

Commit 9710b3f

Browse files
authored
Add "Remarks" and "Example" headings for warning references in range [C4041, C4080]
1 parent 7f67950 commit 9710b3f

21 files changed

+68
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 107ee9fd-4b88-4f22-a18f-a20726831095
1010

1111
> compiler limit : terminating browser output
1212
13+
## Remarks
14+
1315
Browser information exceeded the compiler limit.
1416

1517
This warning can be caused by compiling with [/FR](../../build/reference/fr-fr-create-dot-sbr-file.md) (browser information including local variables).

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: e4bd861b-1194-426b-bf79-68c5b021eb0a
1010

1111
> 'identifier' : has bad storage class
1212
13+
## Remarks
14+
1315
The specified storage class cannot be used with this identifier in this context. The compiler uses the default storage class instead:
1416

1517
- **`extern`**, if *identifier* is a function.
@@ -20,6 +22,8 @@ The specified storage class cannot be used with this identifier in this context.
2022

2123
This warning can be caused by specifying a storage class other than **`register`** in a parameter declaration.
2224

25+
## Example
26+
2327
The following sample generates C4042
2428

2529
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 3c6f7373-da91-45cd-b224-f49f7d8b4df0
1010

1111
> 'array' : array bounds overflow
1212
13+
## Remarks
14+
1315
The array has too many initializers. Extra initializers are ignored.
1416

1517
Make sure that array elements and initializers match in size and quantity.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: b75ad6fb-5c93-4434-a85f-c4083051a5de
1010

1111
> 'operator' : 'identifier1' differs in levels of indirection from 'identifier2'
1212
13+
## Remarks
14+
1315
A pointer can point to a variable (one level of indirection), to another pointer that points to a variable (two levels of indirection), and so on.
1416

1517
## Examples

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 8429f513-4732-40f1-8e56-4c224e723bcb
1010

1111
> different declared array subscripts : 'identifier1' and 'identifier2'
1212
13+
## Remarks
14+
1315
An expression involves pointers to arrays of different size. The pointers are used without conversion.
1416

1517
This warning may be fixed if you explicitly cast the arrays to the same or equivalent type.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: d11c1870-bcfc-4d71-8945-b87ec6ec3514
1010

1111
> compiler limit : terminating line number emission
1212
13+
## Remarks
14+
1315
The file contains more than 16,777,215 (2<sup>24</sup>-1) source lines. The compiler stops numbering at 16,777,215.
1416

1517
For code after line 16,777,215:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ helpviewer_keywords: ["C4052"]
99

1010
> function declarations different; one contains variable arguments
1111
12+
## Remarks
13+
1214
One declaration of the function doesn't contain variable arguments. The empty declaration is ignored.
1315

16+
## Example
17+
1418
The following sample generates C4052:
1519

1620
```c

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ ms.assetid: 96a7397a-4eab-44ab-b3bb-36747503f7e5
1010

1111
> unknown pragma
1212
13-
The compiler ignored an unrecognized [pragma](../../preprocessor/pragma-directives-and-the-pragma-keyword.md). Be sure the **pragma** is allowed by the compiler you are using. The following sample generates C4068:
13+
## Remarks
14+
15+
The compiler ignored an unrecognized [pragma](../../preprocessor/pragma-directives-and-the-pragma-keyword.md). Be sure the **pragma** is allowed by the compiler you are using.
16+
17+
## Example
18+
19+
The following sample generates C4068:
1420

1521
```cpp
1622
// C4068.cpp

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: cd510e66-c338-4a86-a4d7-bfa1df9b16c3
1010

1111
> initializers put in compiler reserved initialization area
1212
13+
## Remarks
14+
1315
The compiler initialization area, which is specified by [#pragma init_seg](../../preprocessor/init-seg.md), is reserved by Microsoft. Code in this area may be executed before initialization of the C run-time library.
1416

17+
## Example
18+
1519
The following sample generates C4074:
1620

1721
```cpp

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 19a700b6-f210-4b9d-a2f2-76cfe39ab178
1010

1111
> initializers put in unrecognized initialization area
1212
13+
## Remarks
14+
1315
A [#pragma init_seg](../../preprocessor/init-seg.md) uses an unrecognized section name. The compiler ignores the **pragma** command.
1416

17+
## Example
18+
1519
The following sample generates C4075:
1620

1721
```cpp

0 commit comments

Comments
 (0)