Commit ddcf4abc by Richard Kenner

(build_binary_op): Also warn about ordered comparison of pointer with

zero if -Wall.

From-SVN: r9580
parent 5a1f85b4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment