Issue Details (XML | Word | Printable)

Key: PCC-133
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

-Wshadow triggers for argument names inside a typedef inside a function

Created: 24/Apr/10 11:51 PM   Updated: 03/Jun/10 09:46 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
Compiling the following code fragment

void foo(int a, int b, int c)
{
        typedef void (*func_t)(int a, char b);
}

with -Wshadow produces warnings about shadowing previous declarations for 'a' and 'b'

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 03/Jun/10 09:46 PM
Fixed. Now it won't warn about shadowed arguments inside of prototypes.