Article View: gnu.gcc.bug
Article #1294Unhelpful redeclaration warning in gcc 2.3.1
From: Jason Merrill
Date: Sat, 07 Nov 1992 04:01
Date: Sat, 07 Nov 1992 04:01
15 lines
990 bytes
990 bytes
This declaration: char *memcpy(char *s1, char *s2, int n); produces these warnings: memcpy.c:1: warning: conflicting types for built-in function `memcpy' memcpy.c:1: warning: type mismatch with previous external decl <built-in>:0: warning: previous external decl of `memcpy' Should there be three warnings for the same error? Also, it would be very nice if gcc told you what types it expects, so you don't have to go hunting through the source to find out. -- Jason Merrill jason@jarthur.claremont.edu
Technical Details
Message-ID:
<1992Nov7.040119.11784@muddcs.claremont.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jasonShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason From: jason@jarthur.claremont.edu (Jason Merrill) Subject: Unhelpful redeclaration warning in gcc 2.3.1 Message-ID: <1992Nov7.040119.11784@muddcs.claremont.edu> Sender: gnulists@ai.mit.edu Organization: Harvey Mudd College, Claremont, CA 91711 Distribution: gnu Date: Sat, 7 Nov 1992 04:01:19 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 16