Commit d2e4feca by Marek Polacek Committed by Marek Polacek

invoke.texi: Document that -Wlogical-not-parentheses is enabled by -Wall.

	* doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
	by -Wall.
c-family/
	* c.opt (Wlogical-not-parentheses): Enable by -Wall.

From-SVN: r214893
parent 88f7d6fb
2014-09-03 Marek Polacek <polacek@redhat.com>
* doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
by -Wall.
2014-09-03 Richard Sandiford <rdsandiford@googlemail.com> 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
* doc/rtl.texi (RTX_AUTOINC): Document that the first operand is * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2014-09-03 Marek Polacek <polacek@redhat.com>
* c.opt (Wlogical-not-parentheses): Enable by -Wall.
2014-09-02 Jakub Jelinek <jakub@redhat.com> 2014-09-02 Jakub Jelinek <jakub@redhat.com>
Balaji V. Iyer <balaji.v.iyer@intel.com> Balaji V. Iyer <balaji.v.iyer@intel.com>
Igor Zamyatin <igor.zamyatin@intel.com> Igor Zamyatin <igor.zamyatin@intel.com>
......
...@@ -519,7 +519,7 @@ C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning ...@@ -519,7 +519,7 @@ C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning
Warn when a logical operator is suspiciously always evaluating to true or false Warn when a logical operator is suspiciously always evaluating to true or false
Wlogical-not-parentheses Wlogical-not-parentheses
C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
Warn when logical not is used on the left hand side operand of a comparison Warn when logical not is used on the left hand side operand of a comparison
Wlong-long Wlong-long
......
...@@ -4800,6 +4800,8 @@ parentheses: ...@@ -4800,6 +4800,8 @@ parentheses:
if ((!a) > 1) @{ @dots{} @} if ((!a) > 1) @{ @dots{} @}
@end smallexample @end smallexample
This warning is enabled by @option{-Wall}.
@item -Waggregate-return @item -Waggregate-return
@opindex Waggregate-return @opindex Waggregate-return
@opindex Wno-aggregate-return @opindex Wno-aggregate-return
......
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