*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Fri, 17 Apr 1992 14:12:11 +0000 (14:12 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 17 Apr 1992 14:12:11 +0000 (14:12 +0000)
From-SVN: r762

gcc/c-typeck.c

index 3a1c828be4a4b587723bb36ef5ead1d35420b2fe..70bebe4795ac86d4c04b06e82d718a3c9e5e3ab6 100644 (file)
@@ -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",