Don't ignore the return value of glib list functions. This will

likely become a warning in future version of glib, which translates to
an error for gnucash since it compiles with the -Werror flag.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12093 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2005-12-04 17:08:02 +00:00
parent 68a290eeaa
commit 0289273f91
5 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -1243,8 +1243,8 @@ void qof_query_set_book (QofQuery *q, QofBook *book)
if (g_list_index (q->books, book) == -1)
q->books = g_list_prepend (q->books, book);
g_slist_prepend (slist, QOF_PARAM_GUID);
g_slist_prepend (slist, QOF_PARAM_BOOK);
slist = g_slist_prepend (slist, QOF_PARAM_GUID);
slist = g_slist_prepend (slist, QOF_PARAM_BOOK);
qof_query_add_guid_match (q, slist,
qof_book_get_guid(book), QOF_QUERY_AND);
}