Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
same type qualifier used more than once
Remarks
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).
Examples
The following example generates C4114:
// C4114.cpp
// compile with: /W1 /c
volatile volatile int i; // C4114
The following example generates C4114:
// C4114_b.cpp
// compile with: /W1 /c
static const int const * ii; // C4114
static const int * const iii; // OK