r23139 - gnucash/trunk/src - Unit test Transaction.c

Derek Atkins warlord at MIT.EDU
Mon Aug 19 12:10:44 EDT 2013


Geert Janssens <janssens-geert at telenet.be> writes:

> This commit seems to generate compile warnings on 64-bit systems (I'm
> on Fedora 19, 64bit now):
>
> /...gnucash-git/src/engine/test/utest-Transaction.c: In function
> test_xaccFreeTransaction':
> /...gnucash-git/src/engine/test/utest-Transaction.c:747:25: error:
> cast from pointer to integer of different size
> [-Werror=pointer-to-int-cast]
>      g_assert_cmpint ((int)txn->num, ==, 1);

We should be using the Glib Pointer to Int conversion macros.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list