projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1f85b
)
(build_binary_op): Also warn about ordered comparison of pointer with
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 5 May 1995 18:51:56 +0000
(14:51 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 5 May 1995 18:51:56 +0000
(14:51 -0400)
zero if -Wall.
From-SVN: r9580
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 6356ffe4dfd5522ea78de3d6ef938df967e8c161..a275c6b63f2fb36f3ee709f476412f009c688f7e 100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-2281,7
+2281,7
@@
build_binary_op (code, orig_op0, orig_op1, convert_p)
&& integer_zerop (op1))
{
result_type = type0;
- if (pedantic)
+ if (pedantic
|| extra_warnings
)
pedwarn ("ordered comparison of pointer with integer zero");
}
else if (code1 == POINTER_TYPE && TREE_CODE (op0) == INTEGER_CST