notmuch/lib
Daniel Kahn Gillmor f5411574af index: explicitly follow GObject conventions
Use explicit labels for GTypeInfo member initializers, rather than
relying on comments and ordering.  This is both easier to read, and
harder to screw up.  This also makes it clear that we're mis-casting
GObject class initializers for gcc.

Without this patch, g++ 8.2.0-7 produces this warning:

CXX  -g -O2 lib/index.o
lib/index.cc: In function ‘GMimeFilter* notmuch_filter_discard_non_term_new(GMimeContentType*)’:
lib/index.cc:252:23: warning: cast between incompatible function types from ‘void (*)(NotmuchFilterDiscardNonTermClass*)’ {aka ‘void (*)(_NotmuchFilterDiscardNonTermClass*)’} to ‘GClassInitFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
      (GClassInitFunc) notmuch_filter_discard_non_term_class_init,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The definition of GClassInitFunc in
/usr/include/glib-2.0/gobject/gtype.h suggests that this function will
always be called with the class_data member of the GTypeInfo.  We set
that value to NULL in both GObject definitions in notmuch. So we mark
it as explicitly unused.

There is no functional change here, just code cleanup.
2018-10-21 10:21:26 -03:00
..
add-message.cc lib: change parent strategy to use In-Reply-To if it looks sane 2018-09-06 08:07:13 -03:00
built-with.c configure: session key handling in gmime maps to built_with("session_key") 2017-12-04 21:39:50 -04:00
config.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
database-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
database.cc lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
directory.cc lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc index: explicitly follow GObject conventions 2018-10-21 10:21:26 -03:00
indexopts.c crypto: add --decrypt=nostash to avoid stashing session keys 2017-12-08 08:08:47 -04:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
message-file.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-id.c lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc properties: add notmuch_message_count_properties 2018-05-26 07:31:39 -07:00
message.cc lib: calculate message depth in thread 2018-09-06 08:07:13 -03:00
messages.c lib/thread: change _resolve_thread_relationships to use depths 2018-09-06 08:07:13 -03:00
notmuch-private.h lib: add _notmuch_message_id_parse_strict 2018-09-06 08:07:13 -03:00
notmuch.h lib: make notmuch_message_get_database() take a const notmuch_message_t* 2018-05-26 07:32:01 -07:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
parse-time-vrp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
parse-time-vrp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query.cc lib: work around xapian bug with get_mset(0,0, x) 2018-04-26 22:14:59 -03:00
regexp-fields.cc lib: Add regexp expansion for for tags and paths 2017-05-09 07:44:29 -03:00
regexp-fields.h lib: Add regexp searching for mid: prefix 2017-05-09 07:44:15 -03:00
sha1.c lib: use glib for sha1 digests instead of embedding libsha1 2017-01-08 10:50:38 -04:00
string-list.c lib: add notmuch_message_count_files 2017-08-01 21:17:47 -04:00
string-map.c move more http -> https 2018-05-03 20:59:20 -03:00
tags.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
thread-fp.cc lib: define specialized get_thread_id for use in thread subquery 2018-05-07 08:42:53 -03:00
thread-fp.h lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
thread.cc lib/thread: change _resolve_thread_relationships to use depths 2018-09-06 08:07:13 -03:00