https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117857

            Bug ID: 117857
           Summary: libgfortran on powerpc-darwin8 doesn't compile:
                    `-Wint-conversion` in `stream_ttyname`
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glex.spb at gmail dot com
  Target Milestone: ---

:info:build
/opt/local/var/macports/build/_Users_gleb_macports-ports_lang_gcc14/libgcc14/work/gcc-14.2.0/libgfortran/io/unix.c:
In function 'stream_ttyname':
:info:build
/opt/local/var/macports/build/_Users_gleb_macports-ports_lang_gcc14/libgcc14/work/gcc-14.2.0/libgfortran/io/unix.c:2097:10:
error: returning 'char *' from a function with return type 'int' makes integer
from pointer without a cast [-Wint-conversion]
:info:build  2097 |   return ttyname_r (((unix_stream *)s)->fd, buf, buflen);
:info:build       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build make[3]: *** [io/unix.lo] Error 1

Note that libgfortran is also affected by
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117834. Reproducing this requires
fixing that bug first.

Reply via email to