[Gnucash-changes] r11925 - gnucash/trunk - Fix David Reiser's
compile problem on OSX with gcc-3.3.
Derek Atkins
warlord at cvs.gnucash.org
Sun Nov 13 20:49:53 EST 2005
Author: warlord
Date: 2005-11-13 20:49:52 -0500 (Sun, 13 Nov 2005)
New Revision: 11925
Trac: http://svn.gnucash.org/trac/changeset/11925
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c
Log:
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.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-11-14 01:03:03 UTC (rev 11924)
+++ gnucash/trunk/ChangeLog 2005-11-14 01:49:52 UTC (rev 11925)
@@ -1,3 +1,10 @@
+2005-11-13 Derek Atkins <derek at 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 at codehelp.co.uk>
* src/backend/file/sixtp.c : Remove deprecated
Modified: gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c 2005-11-14 01:03:03 UTC (rev 11924)
+++ gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c 2005-11-14 01:49:52 UTC (rev 11925)
@@ -123,10 +123,10 @@
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);
More information about the gnucash-changes
mailing list