[Gnucash-changes] r11941 - gnucash/trunk - Scott Oonk's for for x86_64 compile warnings.

Scott Oonk scott.oonk at gmail.com
Tue Nov 15 17:09:13 EST 2005


===================================================================
> --- gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c   2005-11-15 03:48:08 UTC (rev 11940)
> +++ gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c   2005-11-15 04:17:10 UTC (rev 11941)
> @@ -122,10 +122,10 @@
>      success = FALSE;
>      if (error) {
>        *error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno),
> -                          "File %s truncated (provided %d, written %d)",
> +                          "File %s truncated (provided %d, written %zd)",
>                            filename, length, (int) written);
>      } else {
> -      g_critical("File %s truncated (provided %d, written %d)",
> +      g_critical("File %s truncated (provided %d, written %zd)",
>               filename, length, (int) written);
>      }
>      /* Ignore any error */
>

A change to cast 'written' to an int was added after I had submitted
this patch...so we need to either revert this portion of my patch or
remove the int casting.  Both solutions work on my machine.

Scott



More information about the gnucash-changes mailing list