• 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: Chris Suter <email@hidden>
  • Date: Wed, 28 Oct 2009 09:20:26 +1100

Hi Jens,

On Wed, Oct 28, 2009 at 4:12 AM, Jens Alfke <email@hidden> wrote:

I've just looked at the build settings, and the relevant difference seems to be that Chrome uses -fvisibility=hidden (aka "Symbols Hidden by Default"), while regular WebKit/Safari only uses -fvisibility-inlines-hidden.

I don't know why, but it would appear that the compiler is ignoring -fvisibility=hidden for your definition of CommandEntry.

You can get rid of the warning you're seeing by adding __attribute__((visibility("hidden")) to the CommandEntry definition.

Kind regards,

Chris

 _______________________________________________
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

References: 
 >struct "declared with greater visibility than the type of its field" warning (From: Jens Alfke <email@hidden>)
 >Re: struct "declared with greater visibility than the type of its field" warning (From: Alastair Houghton <email@hidden>)
 >Re: struct "declared with greater visibility than the type of its field" warning (From: Jens Alfke <email@hidden>)
 >Re: struct "declared with greater visibility than the type of its field" warning (From: Alastair Houghton <email@hidden>)
 >Re: struct "declared with greater visibility than the type of its field" warning (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Missing braces? I don't see where
  • Next by Date: Re: Missing braces? I don't see where
  • Previous by thread: Re: struct "declared with greater visibility than the type of its field" warning
  • Next by thread: Re: struct "declared with greater visibility than the type of its field" warning
  • Index(es):
    • Date
    • Thread