mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix "discarded return value warning" from r22203
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22254 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
b6a07f0bfb
commit
c976bfe1e8
@ -1755,6 +1755,7 @@ gnc_dbi_check_sqlite3_file( const gchar *uri )
|
|||||||
{
|
{
|
||||||
FILE* f;
|
FILE* f;
|
||||||
gchar buf[50];
|
gchar buf[50];
|
||||||
|
G_GNUC_UNUSED size_t chars_read;
|
||||||
gint status;
|
gint status;
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
|
|
||||||
@ -1773,7 +1774,7 @@ gnc_dbi_check_sqlite3_file( const gchar *uri )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OK if file has the correct header
|
// OK if file has the correct header
|
||||||
fread( buf, sizeof(buf), 1, f );
|
chars_read = fread( buf, sizeof(buf), 1, f );
|
||||||
status = fclose( f );
|
status = fclose( f );
|
||||||
if ( status < 0 )
|
if ( status < 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user