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)
commitd5523ead90b6be2b07d4af745b8ed9b980a6b9f1
tree0e1e0c5f1e06256f2bdae80d6f006622d220478f
parent2f3a76c569e5efad54520613315c0d29512ce69c
Mark some structures in the library interface with visibility=default attribute.

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).
lib/message.cc
lib/notmuch-private.h
lib/query.cc
lib/thread.cc