Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Warning (level 1) C4041"
title: "Compiler Warning (level 1) C4041"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4041"
ms.date: 11/04/2016
f1_keywords: ["C4041"]
helpviewer_keywords: ["C4041"]
ms.assetid: 107ee9fd-4b88-4f22-a18f-a20726831095
---
# Compiler Warning (level 1) C4041

compiler limit : terminating browser output
> compiler limit : terminating browser output

## Remarks

Browser information exceeded the compiler limit.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Warning (level 1) C4042"
title: "Compiler Warning (level 1) C4042"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4042"
ms.date: 11/04/2016
f1_keywords: ["C4042"]
helpviewer_keywords: ["C4042"]
ms.assetid: e4bd861b-1194-426b-bf79-68c5b021eb0a
---
# Compiler Warning (level 1) C4042

'identifier' : has bad storage class
> 'identifier' : has bad storage class

## Remarks

The specified storage class cannot be used with this identifier in this context. The compiler uses the default storage class instead:

Expand All @@ -20,7 +21,9 @@ The specified storage class cannot be used with this identifier in this context.

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

The following sample generates C4042
## Example

The following example generates C4042

```cpp
// C4042.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Warning (level 1) C4045"
title: "Compiler Warning (level 1) C4045"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4045"
ms.date: 11/04/2016
f1_keywords: ["C4045"]
helpviewer_keywords: ["C4045"]
ms.assetid: 3c6f7373-da91-45cd-b224-f49f7d8b4df0
---
# Compiler Warning (level 1) C4045

'array' : array bounds overflow
> 'array' : array bounds overflow

## Remarks

The array has too many initializers. Extra initializers are ignored.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1) C4047"
title: "Compiler Warning (level 1) C4047"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4047"
ms.date: 11/04/2016
f1_keywords: ["C4047"]
helpviewer_keywords: ["C4047"]
ms.assetid: b75ad6fb-5c93-4434-a85f-c4083051a5de
---
# Compiler Warning (level 1) C4047

'operator' : 'identifier1' differs in levels of indirection from 'identifier2'
> 'operator' : 'identifier1' differs in levels of indirection from 'identifier2'

## Remarks

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.

## Examples

The following sample generates C4047:
The following example generates C4047:

```c
// C4047.c
Expand All @@ -32,7 +33,7 @@ int main() {
}
```

The following sample generates C4047:
The following example generates C4047:

```c
// C4047b.c
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Warning (level 1) C4048"
title: "Compiler Warning (level 1) C4048"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4048"
ms.date: 11/04/2016
f1_keywords: ["C4048"]
helpviewer_keywords: ["C4048"]
ms.assetid: 8429f513-4732-40f1-8e56-4c224e723bcb
---
# Compiler Warning (level 1) C4048

different declared array subscripts : 'identifier1' and 'identifier2'
> different declared array subscripts : 'identifier1' and 'identifier2'

## Remarks

An expression involves pointers to arrays of different size. The pointers are used without conversion.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Compiler Warning (level 1) C4049"
title: "Compiler Warning (level 1) C4049"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4049"
ms.date: 11/04/2016
f1_keywords: ["C4049"]
helpviewer_keywords: ["C4049"]
ms.assetid: d11c1870-bcfc-4d71-8945-b87ec6ec3514
---
# Compiler Warning (level 1) C4049

compiler limit : terminating line number emission
> compiler limit : terminating line number emission

## Remarks

The file contains more than 16,777,215 (2<sup>24</sup>-1) source lines. The compiler stops numbering at 16,777,215.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1 and level 4) C4052"
title: "Compiler Warning (level 1 and level 4) C4052"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1 and level 4) C4052"
ms.date: 11/04/2016
f1_keywords: ["C4052"]
helpviewer_keywords: ["C4052"]
---
# Compiler Warning (level 1 and level 4) C4052

> function declarations different; one contains variable arguments

## Remarks

One declaration of the function doesn't contain variable arguments. The empty declaration is ignored.

The following sample generates C4052:
## Example

The following example generates C4052:

```c
// C4052.c
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: Compiler Warning (level 1) C4055"
title: "Compiler Warning (level 1) C4055"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4055"
ms.date: 11/04/2016
f1_keywords: ["C4055"]
helpviewer_keywords: ["C4055"]
ms.assetid: f9955421-16ab-46e5-8f9d-bf1639a519ef
---
# Compiler Warning (level 1) C4055

Expand All @@ -18,7 +17,7 @@ A data pointer is cast (possibly incorrectly) to a function pointer. This is a l

## Example

The following sample generates C4055:
The following example generates C4055:

```C
// C4055.c
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: Compiler Warning (level 1) C4067"
title: "Compiler Warning (level 1) C4067"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4067"
ms.date: 11/04/2016
f1_keywords: ["C4067"]
helpviewer_keywords: ["C4067"]
ms.assetid: 1d10353e-8cd5-4b01-9184-a06189b965a4
---
# Compiler Warning (level 1) C4067

Expand All @@ -16,6 +15,8 @@ The compiler found and ignored extra characters following a preprocessor directi

## Example

The following example generates C4067:

```cpp
// C4067a.cpp
// compile with: cl /EHsc /DX /W1 /Za C4067a.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1) C4068"
title: "Compiler Warning (level 1) C4068"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4068"
ms.date: 11/04/2016
f1_keywords: ["C4068"]
helpviewer_keywords: ["C4068"]
ms.assetid: 96a7397a-4eab-44ab-b3bb-36747503f7e5
---
# Compiler Warning (level 1) C4068

unknown pragma
> unknown pragma

## Remarks

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.

## Example

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:
The following example generates C4068:

```cpp
// C4068.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1) C4074"
title: "Compiler Warning (level 1) C4074"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4074"
ms.date: 11/04/2016
f1_keywords: ["C4074"]
helpviewer_keywords: ["C4074"]
ms.assetid: cd510e66-c338-4a86-a4d7-bfa1df9b16c3
---
# Compiler Warning (level 1) C4074

initializers put in compiler reserved initialization area
> initializers put in compiler reserved initialization area

## Remarks

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.

The following sample generates C4074:
## Example

The following example generates C4074:

```cpp
// C4074.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1) C4075"
title: "Compiler Warning (level 1) C4075"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4075"
ms.date: 11/04/2016
f1_keywords: ["C4075"]
helpviewer_keywords: ["C4075"]
ms.assetid: 19a700b6-f210-4b9d-a2f2-76cfe39ab178
---
# Compiler Warning (level 1) C4075

initializers put in unrecognized initialization area
> initializers put in unrecognized initialization area

## Remarks

A [#pragma init_seg](../../preprocessor/init-seg.md) uses an unrecognized section name. The compiler ignores the **pragma** command.

The following sample generates C4075:
## Example

The following example generates C4075:

```cpp
// C4075.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: Compiler Warning (level 1) C4076"
title: "Compiler Warning (level 1) C4076"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4076"
ms.date: 11/04/2016
f1_keywords: ["C4076"]
helpviewer_keywords: ["C4076"]
ms.assetid: 04581066-313a-4a11-bb60-721e6d038d75
---
# Compiler Warning (level 1) C4076

Expand All @@ -16,7 +15,7 @@ A type modifier, whether it is **`signed`** or **`unsigned`**, cannot be used wi

## Example

The following sample generates C4076; to fix it, remove the **`unsigned`** type modifier:
The following example generates C4076; to fix it, remove the **`unsigned`** type modifier:

```cpp
// C4076.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
---
description: "Learn more about: Compiler Warning (level 1) C4077"
title: "Compiler Warning (level 1) C4077"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4077"
ms.date: 11/04/2016
f1_keywords: ["C4077"]
helpviewer_keywords: ["C4077"]
ms.assetid: c2d28805-b33f-41ad-afba-33b3f788c649
---
# Compiler Warning (level 1) C4077

unknown check_stack option
> unknown check_stack option

## Remarks

The old form of the **check_stack** pragma is used with an unknown argument. The argument must be `+`, `-`, `(on)`, `(off)`, or empty.

The compiler ignores the pragma and leaves the stack checking unchanged.

## Example

The following example generates C4077:

```cpp
// C4077.cpp
// compile with: /W1 /LD
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Warning (level 1) C4079"
title: "Compiler Warning (level 1) C4079"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Warning (level 1) C4079"
ms.date: 11/04/2016
f1_keywords: ["C4079"]
helpviewer_keywords: ["C4079"]
ms.assetid: 549759f0-e168-47e9-8c9a-de93ac843689
---
# Compiler Warning (level 1) C4079

unexpected token 'token'
> unexpected token 'token'

## Remarks

An unexpected separator token occurs in a pragma argument list. The remainder of the pragma was ignored.

The following sample generates C4079:
## Example

The following example generates C4079:

```cpp
// C4079.cpp
Expand Down
Loading