]> git.notmuchmail.org Git - notmuch/commitdiff
Mark some structures in the library interface with visibility=default attribute.
authorCarl Worth <cworth@cworth.org>
Wed, 11 May 2011 20:23:13 +0000 (13:23 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 11 May 2011 20:27:15 +0000 (13:27 -0700)
As of gcc 4.6, there are new warnings from -Wattributes along the lines of:

warning: ‘_notmuch_messages’ declared with greater visibility
than the type of its field ‘_notmuch_messages::iterator’
[-Wattributes]

To squelch these, we decorate all such containing structs with
__attribute__((visibility("default"))). We take care to let only the
C++ compiler see this, (since the C compiler would otherwise warn
about ignored visibility attributes on types).


No differences found