This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Note -Wparentheses and -Wmissing-declarations patches in 4.3 changes.html

This patch notes the recent changes to -Wparentheses and
-Wmissing-declarations for C++ in gcc 4.3.

OK for the web site?


Index: htdocs/gcc-4.3/changes.html
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.11
diff -u -r1.11 changes.html
--- htdocs/gcc-4.3/changes.html	7 Dec 2006 11:06:59 -0000	1.11
+++ htdocs/gcc-4.3/changes.html	18 Dec 2006 21:26:20 -0000
@@ -54,6 +54,18 @@
+  <li>The <code>-Wparentheses</code> option now works for C++ as it
+  does for C.  It warns if parentheses are omitted when operators with
+  confusing precedence are nested.  It warns about ambiguous else
+  statements.  Since <code>-Wparentheses</code> is enabled by
+  <code>-Wall</code>, this may cause additional warnings with existing
+  C++ code which uses <code>-Wall</code>.  The new warnings may be
+  disabled by using <code>-Wall -Wno-parentheses</code>.</li>
+  <li>The <code>-Wmissing-declarations</code> now works for C++ as it
+  does for C.</li>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]