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
16 changes: 11 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2190.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Compiler Error C2190"
description: "Learn more about: Compiler Error C2190"
ms.date: 11/04/2016
ms.date: 08/22/2025
f1_keywords: ["C2190"]
helpviewer_keywords: ["C2190"]
---
Expand All @@ -11,7 +11,7 @@ helpviewer_keywords: ["C2190"]

## Remarks

A C function was declared a second time with a shorter parameter list. C does not support overloaded functions.
A C function was declared a second time with a shorter parameter list. C does not support overloaded functions. Without [`/Za`](../../build/reference/za-ze-disable-language-extensions.md), the compiler emits [Compiler Warning (level 1) C4030](../compiler-warnings/compiler-warning-level-1-c4030.md) instead.

## Example

Expand All @@ -20,7 +20,13 @@ The following example generates C2190:
```c
// C2190.c
// compile with: /Za /c
void func( int, float );
void func( int ); // C2190, different parameter list
void func2( int ); // OK

void func1(int, float);
void func1(int); // C2190, shorter parameter list

void func2(int); // OK
```

## See also

[Compiler Error C2191](compiler-error-c2191.md)
16 changes: 11 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2191.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Compiler Error C2191"
description: "Learn more about: Compiler Error C2191"
ms.date: 11/04/2016
ms.date: 08/22/2025
f1_keywords: ["C2191"]
helpviewer_keywords: ["C2191"]
---
Expand All @@ -11,7 +11,7 @@ helpviewer_keywords: ["C2191"]

## Remarks

A C function was declared a second time with a longer parameter list. C does not support overloaded functions.
A C function was declared a second time with a longer parameter list. C does not support overloaded functions. Without [`/Za`](../../build/reference/za-ze-disable-language-extensions.md), the compiler emits [Compiler Warning (level 1) C4031](../compiler-warnings/compiler-warning-level-1-c4031.md) instead.

## Example

Expand All @@ -20,7 +20,13 @@ The following example generates C2191:
```c
// C2191.c
// compile with: /Za /c
void func( int );
void func( int, float ); // C2191 different parameter list
void func2( int, float ); // OK

void func1(int);
void func1(int, float); // C2191, longer parameter list

void func2(int, float); // OK
```

## See also

[Compiler Error C2190](compiler-error-c2190.md)