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:
John Ralls 2012-07-01 20:20:28 +00:00
parent b6a07f0bfb
commit c976bfe1e8

View File

@ -1755,6 +1755,7 @@ gnc_dbi_check_sqlite3_file( const gchar *uri )
{
FILE* f;
gchar buf[50];
G_GNUC_UNUSED size_t chars_read;
gint status;
gchar *filename;
@ -1773,7 +1774,7 @@ gnc_dbi_check_sqlite3_file( const gchar *uri )
}
// OK if file has the correct header
fread( buf, sizeof(buf), 1, f );
chars_read = fread( buf, sizeof(buf), 1, f );
status = fclose( f );
if ( status < 0 )
{