diff options
author | Carl Worth <cworth@cworth.org> | 2011-05-11 13:23:13 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-11 13:27:15 -0700 |
commit | d5523ead90b6be2b07d4af745b8ed9b980a6b9f1 (patch) | |
tree | 0e1e0c5f1e06256f2bdae80d6f006622d220478f /lib/thread.cc | |
parent | 2f3a76c569e5efad54520613315c0d29512ce69c (diff) |
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).
Diffstat (limited to 'lib/thread.cc')
-rw-r--r-- | lib/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.cc b/lib/thread.cc index ace5ce7f..0435ee6d 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -24,7 +24,7 @@ #include <gmime/gmime.h> #include <glib.h> /* GHashTable */ -struct _notmuch_thread { +struct visible _notmuch_thread { notmuch_database_t *notmuch; char *thread_id; char *subject; |