aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-04-17 14:12:11 +0000
committerRichard Stallman <rms@gnu.org>1992-04-17 14:12:11 +0000
commit7fc89bbe4ea7e4d4acace80341e9a71db5949a22 (patch)
tree1a6d76c927a796e7c982d6b97fc6713fa7fb634d
parentddbe9812b118487d499a1a452f8f3b5cd8d79f4f (diff)
downloadgcc-7fc89bbe4ea7e4d4acace80341e9a71db5949a22.zip
gcc-7fc89bbe4ea7e4d4acace80341e9a71db5949a22.tar.gz
gcc-7fc89bbe4ea7e4d4acace80341e9a71db5949a22.tar.bz2
*** empty log message ***
From-SVN: r762
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 3a1c828..70bebe4 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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",