• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: struct "declared with greater visibility than the type of its field" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Xcode tutorial videos
  • Next by Date: Re: struct "declared with greater visibility than the type of its field" warning
  • Previous by thread: Re: struct "declared with greater visibility than the type of its field" warning
  • Next by thread: Dynamic cast failing in dynamically loaded plugin on os x 10.6
  • Index(es):
    • Date
    • Thread