From d5523ead90b6be2b07d4af745b8ed9b980a6b9f1 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 11 May 2011 13:23:13 -0700 Subject: Mark some structures in the library interface with visibility=default attribute. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/thread.cc') 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 #include /* GHashTable */ -struct _notmuch_thread { +struct visible _notmuch_thread { notmuch_database_t *notmuch; char *thread_id; char *subject; -- cgit v1.2.3