--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-03 21:57
---
Use -Wshadow:
-WshadowWarn when one local variable shadows another
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18292
--- Additional Comments From deepak at despammed dot com 2004-11-03 21:50 ---
(In reply to comment #4)
> Not a bug, you have a variable called signal which shadows the global function:
> sig(int signal) {
Agree. Is it possible to change the error message to say exactly this? For
instan
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-03 21:41
---
Not a bug, you have a variable called signal which shadows the global function:
sig(int signal) {
--
What|Removed |Added
-
--- Additional Comments From deepak at despammed dot com 2004-11-03 21:38 ---
(In reply to comment #1)
> I cannot reproduce this, can you attach the preprocessed source?
Here is the plain source:
#include
extern volatile sig_atomic_t pe_connection_BAD;
void
sig(int signal) {
int
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-03 21:06
---
I cannot reproduce this, can you attach the preprocessed source?
--
What|Removed |Added