Commit 82cfbd01 by Marek Polacek Committed by Marek Polacek

c-warn.c (warn_logical_operator): Return early if -Wlogical-op is not in effect.

	* c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
	not in effect.

From-SVN: r255782
parent 066fc751
2017-12-18 Marek Polacek <polacek@redhat.com>
* c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
not in effect.
2017-12-17 Martin Sebor <msebor@redhat.com>
* c-attribs.c (common_handle_aligned_attribute): Avoid issuing
......
......@@ -180,6 +180,9 @@ warn_logical_operator (location_t location, enum tree_code code, tree type,
tree low0, low1, low, high0, high1, high, lhs, rhs, tem;
bool strict_overflow_p = false;
if (!warn_logical_op)
return;
if (code != TRUTH_ANDIF_EXPR
&& code != TRUTH_AND_EXPR
&& code != TRUTH_ORIF_EXPR
......
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