Fix compilation error in sqlite3_error_fn.

Oddly, this was fixed in master as part of building the file as C++. Even
more oddly no C compiler caught the type error for 6 years and it's not clear
to me what happened to make clang notice it now.
This commit is contained in:
John Ralls
2016-08-19 15:29:10 -07:00
parent 31b6962817
commit 518fc2ffae

View File

@@ -240,10 +240,12 @@ static void
sqlite3_error_fn( dbi_conn conn, /*@ unused @*/ void* user_data )
{
const gchar* msg;
GncDbiBackend *be = (GncDbiBackend*)user_data;
GncDbiSqlConnection *dbi_conn = (GncDbiSqlConnection*)(be->sql_be.conn);
(void)dbi_conn_error( conn, &msg );
PERR( "DBI error: %s\n", msg );
gnc_dbi_set_error( conn, ERR_BACKEND_MISC, 0, FALSE );
gnc_dbi_set_error( dbi_conn, ERR_BACKEND_MISC, 0, FALSE );
}
static void