diff mbox

[wwwdocs] Add a note around -Wno-discarded-array-qualifiers to the GCC 5 release notes

Message ID alpine.LSU.2.20.1504120301540.9357@tuna.site
State New
Headers show

Commit Message

Gerald Pfeifer April 12, 2015, 1:03 a.m. UTC
This is a patch by Martin Uecker, which I just committed.

Gerald
diff mbox

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/changes.html,v
retrieving revision 1.102
diff -u -r1.102 changes.html
--- changes.html	10 Apr 2015 21:47:18 -0000	1.102
+++ changes.html	12 Apr 2015 01:01:25 -0000
@@ -339,6 +339,12 @@ 
 	a new warning option <code>-Wno-int-conversion</code>; and warnings
 	about qualifiers on pointers being discarded via a new warning option
 	<code>-Wno-discarded-qualifiers</code>.</li>
+    <li>To allow proper use of const qualifiers with multidimensional arrays,
+	GCC will not warn about incompatible pointer types anymore for
+	conversions between pointers to arrays with and without const qualifier
+	(except when using <code>-pedantic</code>). Instead, a new warning is
+	emitted only if the const qualifier is lost. This can be controlled with
+	a new warning option <code>-Wno-discarded-array-qualifiers</code>.</li> 
     <li>The C front end now generates more precise caret diagnostics.</li>
     <li>The <code>-pg</code> command-line option now only affects the current
         file in an LTO build.</li>