[Engine Test] Fix some compile problems Christian Stimming found in r21525

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21528 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls
2011-11-07 00:07:05 +00:00
parent 13ca8524d1
commit 7f08994242
2 changed files with 6 additions and 4 deletions

View File

@@ -849,7 +849,7 @@ gnc_account_get_book(const Account *account)
/********************************************************************\
\********************************************************************/
Account *
static Account *
gnc_coll_get_root_account (QofCollection *col)
{
if (!col) return NULL;

View File

@@ -436,9 +436,9 @@ GList *gnc_account_list_name_violations (QofBook *book, const gchar *separator)/
static void
test_gnc_account_list_name_violations (Fixture *fixture, gconstpointer pData)
{
gchar *msg;
gchar *msg = "No particular message";
TestErrorStruct quiet = { 0, NULL, msg };
GList *results;
GList *results, *res_iter;
gchar *sep = ":";
QofBook *book = gnc_account_get_book (fixture->acct);
/* Because of GLib bug 653052, we have to set the logging user_data to
@@ -452,7 +452,9 @@ test_gnc_account_list_name_violations (Fixture *fixture, gconstpointer pData)
g_log_set_default_handler (oldlogger, NULL);
results = gnc_account_list_name_violations (book, sep);
g_assert_cmpuint (g_list_length (results), ==, 2);
g_list_free_full (results, test_free);
for (res_iter = results; res_iter; res_iter = g_list_next (res_iter))
test_free (res_iter->data);
g_list_free (results);
}
/* mark_account
void