Article View: gnu.gcc.bug
Article #1566gcc-2.3.2: -Wshadow warnings ...
From: Minh Tran-Le
Date: Fri, 18 Dec 1992 20:27
Date: Fri, 18 Dec 1992 20:27
22 lines
922 bytes
922 bytes
Why does gcc give me a shadow warning when compiling the xxx.c file
included at the end of this message ?
Thanks,
Minh Tran-Le.
---------------------------------------------------------------------------
Compile command used:
267 mtranle@rigel> gcc2 -c -Wshadow -O xxx.c
xxx.c:3: warning: declaration of `end' shadows global declaration
/* -- file xxx.c -- */
char **end;
int f1(int *start, int *end);
int f2()
{
return 1;
}
/* -- end of file xxx.c -- */
-------
Technical Details
Message-ID:
<9212182027.AA23627@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!intellicorp.com!TRANLEShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!intellicorp.com!TRANLE From: TRANLE@intellicorp.com (Minh Tran-Le) Subject: gcc-2.3.2: -Wshadow warnings ... Message-ID: <9212182027.AA23627@life.ai.mit.edu> Sender: gnulists@ai.mit.edu Reply-To: tranle@intellicorp.com Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 18 Dec 1992 20:27:10 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 23