public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/13129] New: invalid shadow declaration warning
@ 2003-11-19 20:13 gcc-bugzilla at gcc dot gnu dot org
  2003-11-19 20:44 ` [Bug c/13129] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-11-19 20:13 UTC (permalink / raw)
  To: gcc-bugs

	When compiling code with -Wshadow, gcc whines if external struct or
	so is first declared (like 'extern struct foo bar;') globally and
	then locally.

Environment:
System: Linux haapana 2.4.22 #12 SMP Fri Nov 7 04:07:28 EET 2003 i686 unknown unknown GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: mcore-unknown-elf
configured with: /work/gcc/configure --target=mcore-elf --with-gnu-as --with-gcc --disable-nls --enable-languages=c,objc,c++ --with-gnu-ld --prefix=/emb/cross-gcc-current --program-prefix=mcore-elf- --program-suffix= -v --with-newlib --with-headers=/pub/devel/gnu/newlib-1.11.0/newlib/libc/include

How-To-Repeat:
	/* ***** start of test.c ***** */
	/* Compile: 'mcore-elf-gcc -Wshadow -c test.c -o test.o' */
	extern struct foo bar;
	void dummy()
	{
	  extern struct foo bar;
        }
	/* *****  end of test.c  ***** */
------- Additional Comments From sami dot kantoluoto at embedtronics dot fi  2003-11-19 20:13 -------
Fix:
	Don't use -Wshadow.

-- 
           Summary: invalid shadow declaration warning
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sami dot kantoluoto at embedtronics dot fi
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mcore-unknown-elf


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-03-23 23:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 20:13 [Bug other/13129] New: invalid shadow declaration warning gcc-bugzilla at gcc dot gnu dot org
2003-11-19 20:44 ` [Bug c/13129] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-19  6:41 ` pinskia at gcc dot gnu dot org
2003-12-29 17:51 ` pinskia at gcc dot gnu dot org
2004-03-16 20:57 ` [Bug c/13129] [3.4/3.5 " zack at gcc dot gnu dot org
2004-03-22 17:58 ` cvs-commit at gcc dot gnu dot org
2004-03-22 18:08 ` [Bug c/13129] [3.5 " mmitchel at gcc dot gnu dot org
2004-03-23 23:53 ` zack at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).