Commit 7fc89bbe by Richard Stallman

*** empty log message ***

From-SVN: r762
parent ddbe9812
......@@ -2944,7 +2944,7 @@ build_unary_op (code, xarg, noconvert)
if (typecode == POINTER_TYPE)
{
if (pedantic
if ((pedantic || warn_pointer_arith)
&& (TREE_CODE (TREE_TYPE (result_type)) == FUNCTION_TYPE
|| TREE_CODE (TREE_TYPE (result_type)) == VOID_TYPE))
pedwarn ("wrong type argument to %s",
......
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