complie error in current trunk

Herbert Thoma herbert.thoma at iis.fraunhofer.de
Fri Dec 21 06:10:34 EST 2012


Am 21.12.2012 10:43, schrieb Geert Janssens:
> On 21-12-12 07:45, Mike Alexander wrote:
>> --On December 20, 2012 5:00:56 PM +0100 Geert Janssens <janssens-geert at telenet.be> wrote:
>>
>>> This may be a side effect of my efforts to make GnuCash build and run
>>> with guile 2. I'm not sure why I didn't get these warnings on my
>>> system.
>>>
>>> Anyway, just to test, can you alter src/base-typemaps.i as follows:
>>> on line 19, there is
>>> %typemap (out) char * {
>>>
>>> Can you just below this line insert this:
>>>    $result = SCM_UNSPECIFIED;
>>>
>>> And then compile again ?
>>
>> I'll have to admit that I got this error too and didn't fix or report it.  I just turned off the warning so I could finish what else I was doing and then forgot about it.
>>
>> The error is probably dependent on exactly what compiler you are using since it depends on the flow analysis done during optimization.  In my case I was using gcc 4.6.3 when I got the error.
>>
>> I tried the fix you suggest above and it seems to solve, or at least avoid, the problem.
>>
>>          Mike
>>
> Thanks for the feedback. I have committed the change.
> 
> FWIW, my compiler is gcc 4.7.2 on Fedora 17. I'm compiling with -Werror but it doesn't produce the warning reported. It think it's a valid warning in this case though.

I confirm that the fix fixes the error on my system as well.

Thank you!

 Herbert.

> Geert
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> 


More information about the gnucash-devel mailing list