Visual C++ Compiler Warning C4114

Message Text

same type qualifier used more than once

Level

This is a level 1 warning.

Circumstances

Warning C4114 is concerned with modifiers in declarations. There are two cases.

First, repeating any of the following modifiers

causes warning C4114 if the Microsoft language extensions are enabled (as by /Ze, which is the default). Otherwise, such repetition is an error (C2289).

Second, and independently of /Za versus /Ze, warning C4114 follows from repeating signed or unsigned. In contrast, mixing signed and unsigned is always an error (C2042).