https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39985
--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- In C, in C11 mode, type qualifiers are completely ignored on function return types, including not affecting type compatibility, after my commit: r236231 | jsm28 | 2016-05-13 21:35:39 +0000 (Fri, 13 May 2016) | 46 lines Implement C11 DR#423 resolution (ignore function return type qualifiers).