This is the mail archive of the gcc-patches@gcc.gnu.org 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]

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


This is a patch by Martin Uecker, which I just committed.

Gerald
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>


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