This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Mention -Wduplicated-cond
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 2 Oct 2015 15:25:25 +0200
- Subject: [wwwdocs] Mention -Wduplicated-cond
- Authentication-results: sourceware.org; auth=none
Applied.
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.32
diff -u -r1.32 changes.html
--- changes.html 28 Sep 2015 00:43:48 -0000 1.32
+++ changes.html 2 Oct 2015 13:23:47 -0000
@@ -84,6 +84,9 @@
<code>-fdelete-null-pointer-checks</code> is active, which is enabled
by optimizations in most targets. The precision of the warnings
depends on the optimization options used.</li>
+ <li><code>-Wduplicated-cond</code> warns about duplicated conditions
+ in an if-else-if chain. This warning is enabled by
+ <code>-Wall</code>.</li>
</ul>
</li>
</ul>
Marek