tsto / notmuchfs

A virtual maildir file system for notmuch queries
Other
89 stars 11 forks source link

notmuch_query_search_messages_st’ is deprecated #9

Closed ldegen closed 7 years ago

ldegen commented 7 years ago

Hi,

I got the following error from running make:

cc -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64   -c -MD -o notmuchfs.o notmuchfs.c
notmuchfs.c: In function ‘notmuchfs_opendir’:
notmuchfs.c:501:10: error: ‘notmuch_query_search_messages_st’ is deprecated: function deprecated as of libnotmuch 5.0 [-Werror=deprecated-declarations]
          notmuch_query_search_messages_st(dir_fd->p_query, &dir_fd->p_messages);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from notmuchfs.c:66:0:
/usr/include/notmuch.h:946:1: note: declared here
 notmuch_query_search_messages_st (notmuch_query_t *query,
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:37: die Regel für Ziel „notmuchfs.o“ scheiterte
make: *** [notmuchfs.o] Fehler 1

Workaround:

When I remove -Werror from CFLAGS, the build passes, and as far as I can tell, everything works.