[patch] Fix compiler warnings on 64 bit processor.

Karl Hegbloom hegbloom at pdx.edu
Tue Nov 1 15:47:48 EST 2005


Here's a ChangeLog entry and diff against today's CVS that suppresses
the compiler warnings wrt casting from gpointer to int when a pointer is
64 bits and an int is only 32.  See the Glib manual, under type
conversion macros for documentation of the macros used in this patch.

-- 
Karl Hegbloom <hegbloom at pdx.edu>
-------------- next part --------------
2005-11-01  Karl Hegbloom  <hegbloom at pdx.edu>

	* src/backend/postgres/upgrade.c (get_iguid_cb): Use glib macros
	  for type conversions to suppress compiler warnings on amd64.
	  (put_iguid_in_tables): ditto

	* src/backend/postgres/price.c (commodity_mark_cb): Use glib
	  macros for type conversions to suppress compiler warnings on
	  amd64.

	* src/backend/postgres/base-autogen.c (pgendAccountCompareVersion):
	  Use glib macros for type conversions to suppress compiler
	  warnings on amd64.
	  (pgendTransactionCompareVersion): ditto
	  (pgendPriceCompareVersion): ditto
	  (pgendAccountGetDeletedVersion): ditto
	  (pgendBookGetDeletedVersion): ditto
	  (pgendTransactionGetDeletedVersion): ditto
	  (pgendPriceGetDeletedVersion): ditto

	* src/backend/postgres/kvp-sql.c (ival_cb): Use glib macros for
	  type conversions to suppress compiler warnings on amd64.

	* src/backend/postgres/putil.h (COMP_INT64): Cast fun to long long
	  int to suppress compiler warning on amd64.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucash-gnome2-64bit-warning-suppression.diff
Type: text/x-patch
Size: 3091 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20051101/a8c53c8e/gnucash-gnome2-64bit-warning-suppression.bin


More information about the gnucash-devel mailing list