[Bug libfortran/47973] New: error.c:158:7: warning: return makes pointer from integer without a cast

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 3 14:43:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47973

           Summary: error.c:158:7: warning: return makes pointer from
                    integer without a cast
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa1.1-hp-hpux10*
            Target: hppa1.1-hp-hpux10*
             Build: hppa1.1-hp-hpux10*


libtool: compile:  /xxx/gnu/gcc/objdir/./gcc/xgcc -B/xxx/gnu/gcc/objdir/./gcc/
-
B/opt/gnu/gcc/gcc-4.6/hppa1.1-hp-hpux10.20/bin/
-B/opt/gnu/gcc/gcc-4.6/hppa1.1-h
p-hpux10.20/lib/ -isystem /opt/gnu/gcc/gcc-4.6/hppa1.1-hp-hpux10.20/include
-isy
stem /opt/gnu/gcc/gcc-4.6/hppa1.1-hp-hpux10.20/sys-include -DHAVE_CONFIG_H -I.
-
I../../../../gcc/libgfortran -iquote../../../../gcc/libgfortran/io
-I../../../..
/gcc/libgfortran/../gcc -I../../../../gcc/libgfortran/../gcc/config
-I../../../.
./gcc/libgfortran/../libquadmath -I../../.././gcc -D_GNU_SOURCE -std=gnu99
-Wall
 -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra
-Wwrite
-strings -fcx-fortran-rules -g -O2 -threads -MT error.lo -MD -MP -MF
.deps/error
.Tpo -c ../../../../gcc/libgfortran/runtime/error.c  -fPIC -DPIC -o
.libs/error.
o
../../../../gcc/libgfortran/runtime/error.c: In function 'gf_strerror':
../../../../gcc/libgfortran/runtime/error.c:158:7: warning: return makes
pointer from integer without a cast [enabled by default]

Proto:
int strerror_r(int errnum, char *buffer, int buflen);

Declaration is in string.h.



More information about the Gcc-bugs mailing list