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

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).