Re: struct "declared with greater visibility than the type of its field" warning
Re: struct "declared with greater visibility than the type of its field" warning
- Subject: Re: struct "declared with greater visibility than the type of its field" warning
- From: P Teeson <email@hidden>
- Date: Tue, 27 Oct 2009 11:34:46 -0400
Could it be because the function is static?
On 26 Oct 2009, at 22:59, Jens Alfke wrote:
I'm trying to get rid of a pesky compiler warning which makes no
sense to me. I'm wondering whether it's a GCC bug. The C++ code in
question looks like this:
struct EditorInternalCommand { ...... };
static const CommandMap& createCommandMap()
{
struct CommandEntry { const char* name; EditorInternalCommand
command; };
...
When compiled, this last line produces the warning:
warning: 'WebCore::createCommandMap()::CommandEntry' declared with
greater visibility than the type of its field
'WebCore::createCommandMap()::CommandEntry::command'
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden