mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 04:59:29 -06:00
Fix David Reiser's compile problem on OSX with gcc-3.3.
* src/core-utils/gnc-gkeyfile-utils.c: cast the printf so we don't warn when sizeof(ssize_t) != sizeof(int). In this case the cast is safe because we can only write an int-size of data. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11925 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9e9ceb6320
commit
04eb0593b5
@ -1,3 +1,10 @@
|
||||
2005-11-13 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/core-utils/gnc-gkeyfile-utils.c: cast the
|
||||
printf so we don't warn when sizeof(ssize_t) !=
|
||||
sizeof(int). In this case the cast is safe because
|
||||
we can only write an int-size of data.
|
||||
|
||||
2005-11-13 Neil Williams <linux@codehelp.co.uk>
|
||||
|
||||
* src/backend/file/sixtp.c : Remove deprecated
|
||||
|
@ -123,10 +123,10 @@ gnc_key_file_save_to_file (const gchar *filename,
|
||||
if (error) {
|
||||
*error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno),
|
||||
"File %s truncated (provided %d, written %d)",
|
||||
filename, length, written);
|
||||
filename, length, (int) written);
|
||||
} else {
|
||||
g_critical("File %s truncated (provided %d, written %d)",
|
||||
filename, length, written);
|
||||
filename, length, (int) written);
|
||||
}
|
||||
/* Ignore any error */
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user