mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user