From: Richard Stallman Date: Fri, 17 Apr 1992 14:12:11 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fc89bbe4ea7e4d4acace80341e9a71db5949a22;p=gcc.git *** empty log message *** From-SVN: r762 --- 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",