description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4114 |
Compiler Warning (level 1) C4114 |
11/04/2016 |
|
|
3983e1c6-e8bb-46dc-8894-e1827db48797 |
same type qualifier used more than once
A type declaration or definition uses a type qualifier (const
, volatile
, signed
, or unsigned
) more than once. This causes a warning with Microsoft extensions (/Ze) and an error under ANSI compatibility (/Za).
The following sample generates C4114:
// C4114.cpp
// compile with: /W1 /c
volatile volatile int i; // C4114
The following sample generates C4114:
// C4114_b.cpp
// compile with: /W1 /c
static const int const * ii; // C4114
static const int * const iii; // OK