From 7fc89bbe4ea7e4d4acace80341e9a71db5949a22 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 17 Apr 1992 14:12:11 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r762 --- gcc/c-typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 3a1c828be4a..70bebe4795a 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", -- 2.30.2