Enables or disables diagnostic messages issued when the compiler finds four-character constants in the program source.


Read syntax diagramSkip visual syntax diagram        .-nowarnfourcharconsts-.
>>- -q--+-warnfourcharconsts---+-------------------------------><


A character constant is represented by enclosing a single character within a pair of apostrophes. Defining a constant with more than one character enclosed within a pair of apostrophes ordinarily causes the compiler to issue a warning.


In the following code segment:

enum test { a = 'a',
            b = 'ab',
            c = 'abc',
            d = 'abcd',
            e = 'abcde'

int main() {
    return 0;

Related information