Compile Warning (Error) in trunk
jralls at ceridwen.us
Sat Jun 9 10:57:08 EDT 2012
On Jun 9, 2012, at 6:14 AM, Casey Cichon wrote:
> On Fri, Jun 08, 2012 at 07:29:58AM +0100, John Ralls wrote:
>> That's interesting.
>> What compiler are you building with?
> casey at wizkid2:~/Downloads/gnucash$ gcc --version
> gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> casey at wizkid2:~/Downloads/gnucash$
>> Can you change the declarations at lines 166, 167, and 168 from int to gint64 and see if that makes the first warning go away?
> It didn't help. Got the same overflow warning.
Then it would seem to be a compiler bug, since the value clearly doesn't overflow a gint64, or a problem with your installation of GLib so that gint64 isn't correctly typedef'd. Try turning off that warning so that it will compile and see if it passes the tests anyway. If it does, then there's a problem with the compiler. If the gnc-date tests fail, then you'll need to figure out why gint64 doesn't make a 64-bit int.
More information about the gnucash-devel