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

Geert Janssens janssens-geert at telenet.be
Mon Aug 19 12:12:40 EDT 2013


On 19-08-13 18:10, Derek Atkins wrote:
> 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
>
Indeed, exactly the fix John pushed earlier today ;)

Geert


More information about the gnucash-devel mailing list