public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/45998] New: libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target @ 2010-10-13 7:51 burnus at gcc dot gnu.org 2010-10-13 8:05 ` [Bug fortran/45998] " sezeroz at gmail dot com 2010-10-14 1:30 ` jvdelisle at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: burnus at gcc dot gnu.org @ 2010-10-13 7:51 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45998 Summary: libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org CC: jvdelisle@gcc.gnu.org Reported for MinGW64 in #gfortran: < NightStrike_> ../../../../../build/gcc/src/libgfortran/io/write.c:394:8: warning: passing argument 2 of 'write_default_char4' discards 'const' qualifier from pointer target type [enabled by default] That's the line write_default_char4 (dtp, crlf, 2, 0); where const gfc_char4_t crlf[] = {0x000d,0x000a}; and write_default_char4 (st_parameter_dt *dtp, gfc_char4_t *source, int src_len, int w_len) I wonder whether one shouldn't simply make the second parameter of write_default_char4 "const". ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/45998] libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target 2010-10-13 7:51 [Bug fortran/45998] New: libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target burnus at gcc dot gnu.org @ 2010-10-13 8:05 ` sezeroz at gmail dot com 2010-10-14 1:30 ` jvdelisle at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: sezeroz at gmail dot com @ 2010-10-13 8:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45998 Ozkan Sezer <sezeroz at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sezeroz at gmail dot com --- Comment #1 from Ozkan Sezer <sezeroz at gmail dot com> 2010-10-13 08:05:22 UTC --- Already reported in PR41219 for 4.5.x. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/45998] libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target 2010-10-13 7:51 [Bug fortran/45998] New: libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target burnus at gcc dot gnu.org 2010-10-13 8:05 ` [Bug fortran/45998] " sezeroz at gmail dot com @ 2010-10-14 1:30 ` jvdelisle at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: jvdelisle at gcc dot gnu.org @ 2010-10-14 1:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45998 Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2010-10-14 01:29:41 UTC --- I missed the PR noted above for some reason. I will take care of it. I am running into similar warnings while working other patches. I will mark this duplicate and assign myself to the other. *** This bug has been marked as a duplicate of bug 41219 *** ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-14 1:30 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-10-13 7:51 [Bug fortran/45998] New: libgfortran/io/write.c: warning: discards 'const' qualifier from pointer target burnus at gcc dot gnu.org 2010-10-13 8:05 ` [Bug fortran/45998] " sezeroz at gmail dot com 2010-10-14 1:30 ` jvdelisle at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).