notmuch/lib
Jani Nikula 5505d55515 lib: fix warnings when building with clang
Building notmuch with CC=clang and CXX=clang++ produces the warnings:

CC -O2 lib/tags.o
lib/tags.c:43:5: warning: expression result unused [-Wunused-value]
    talloc_steal (tags, list);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:345:143: note: expanded from:
  ...__location__); __talloc_steal_ret; })
                    ^~~~~~~~~~~~~~~~~~
1 warning generated.

CXX -O2 lib/message.o
lib/message.cc:791:5: warning: expression result unused [-Wunused-value]
    talloc_reference (message, message->tag_list);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/talloc.h:932:36: note: expanded from:
  ...(_TALLOC_TYPEOF(ptr))_talloc_reference_loc((ctx),(ptr), __location__)
     ^                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Check talloc_reference() return value, and explicitly ignore
talloc_steal() return value as it has no failure modes, to silence the
warnings.
2012-12-01 08:10:32 -04:00
..
database-private.h lib: add date range query support 2012-10-31 16:55:32 -03:00
database.cc lib: Reject multi-message mboxes and deprecate single-message mbox 2012-11-26 21:12:10 -04:00
directory.cc lib: Perform the same transformation to _notmuch_database_find_directory_id 2012-05-23 22:30:32 -03:00
filenames.c lib: fix NULL checks for filenames iterators 2012-09-01 23:03:11 -03:00
gen-version-script.sh lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed 2011-09-05 07:44:14 -03:00
index.cc lib: Reject multi-message mboxes and deprecate single-message mbox 2012-11-26 21:12:10 -04:00
libsha1.c fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
libsha1.h fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: add date range query support 2012-10-31 16:55:32 -03:00
message-file.c Fix appending of Received headers 2011-06-10 17:03:14 -07:00
message.cc lib: fix warnings when building with clang 2012-12-01 08:10:32 -04:00
messages.c lib: fix messages.c build warn 2012-01-10 06:33:23 -04:00
notmuch-private.h Fix the COERCE_STATUS macro 2012-09-27 12:51:51 -03:00
notmuch.h lib: Make notmuch_database_get_directory return NULL if the directory is not found 2012-05-23 22:30:55 -03:00
parse-time-vrp.cc lib: add date range query support 2012-10-31 16:55:32 -03:00
parse-time-vrp.h lib: add date range query support 2012-10-31 16:55:32 -03:00
query.cc lib: change default for notmuch_query_set_omit_excluded 2012-04-07 22:58:33 -03:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
string-list.c Fixup string list author 2011-03-21 02:45:18 -04:00
tags.c lib: fix warnings when building with clang 2012-12-01 08:10:32 -04:00
thread.cc lib: Add the exclude flag to notmuch_query_search_threads 2012-03-02 08:28:39 -04:00