Commit 47429a02 by Richard Stallman

(grokdeclarator): Make `long long long' an error, not a warning.

(grokdeclarator):  Make `long long long' an error, not a
warning.  Make duplicate qualifiers do pedwarn, not warning.

From-SVN: r1453
parent 9ab0ddd7
......@@ -3440,7 +3440,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if (pedantic)
pedwarn ("duplicate `%s'", IDENTIFIER_POINTER (id));
else if (longlong)
warning ("`long long long' is too long for GCC");
error ("`long long long' is too long for GCC");
else
longlong = 1;
}
......@@ -3898,9 +3898,9 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
}
}
if (constp > 1)
warning ("duplicate `const'");
pedwarn ("duplicate `const'");
if (volatilep > 1)
warning ("duplicate `volatile'");
pedwarn ("duplicate `volatile'");
}
declarator = TREE_OPERAND (declarator, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment