gcc-2.95 (19990718) and IRIX 6.2 - conflicting types for built-in function...

Matthias Kurz mk@baerlap.north.de
Thu Jul 29 22:38:00 GMT 1999


Hi.

If i compile the following program

#include <strings.h>

int main(int argc, char **argv)
{
  int buffer[1024], buffer1[1024];

  memcpy(buffer, buffer1, 500);

}

with "gcc -mips3 -mr4000", i get the following warnings:

In file included from /usr/include/sys/select.h:70,
                 from /usr/include/sys/bsd_types.h:44,
                 from /usr/include/sys/types.h:335,
                 from /usr/include/strings.h:15,
                 from tst.c:2:
/usr/include/string.h:57: warning: conflicting types for built-in function `memcpy'
/usr/include/string.h:64: warning: conflicting types for built-in function `memcmp'
/usr/include/string.h:79: warning: conflicting types for built-in function `memset'
/usr/include/string.h:81: warning: conflicting types for built-in function `strlen'

There are no warnings, if i compile without "-mips3 -mr4000".


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47


More information about the Gcc-bugs mailing list