🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Minh Tran-Le Fri, 18 Dec 1992 20:27
gcc-2.3.2: -Wshadow warnings ...
#1566
Author: Minh Tran-Le
Date: Fri, 18 Dec 1992 20:27
22 lines
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 -- */
-------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads