projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddbe981
)
*** empty log message ***
author
Richard Stallman
<rms@gnu.org>
Fri, 17 Apr 1992 14:12:11 +0000
(14:12 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 17 Apr 1992 14:12:11 +0000
(14:12 +0000)
From-SVN: r762
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 3a1c828be4a4b587723bb36ef5ead1d35420b2fe..70bebe4795ac86d4c04b06e82d718a3c9e5e3ab6 100644
(file)
--- 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",