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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Scott Oonk
===================================================================

> --- 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

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel