Mon, Aug 14 2006
22:31:33
|
|
Request created by guest
|
|
Subject: r.series won't compile with Sun C 5.5.
Platform: Solaris2.x/Sparc
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: cvs 20060815
When compiling GRASS with Sun C 5.5, file c_percentile.c in r.series fails with
the following errors:
"c_percentile.c", line 29: void function cannot return value
"c_percentile.c", line 34: void function cannot return value
"c_percentile.c", line 39: void function cannot return value
Each of these lines tries to return a value from a function returning void with
the pretext that they are trying to return a void gotten from another function.
Even if this works with some compilers, I fail to see the logic behind. If the
return-statements from the failing lines are removed, everything compiles fine.
I can see no logical reason not to.
Harri K. |
|
Tue, Aug 15 2006
05:09:03
|
|
Mail sent by glynn@gclements.plus.com
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<17633.15051.532464.669959@cerise.gclements.plus.com>
|
Date |
Tue, 15 Aug 2006 04:08:59 +0100
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass-dev@grass.itc.it
|
Subject |
Re: [GRASS-dev] [bug #5003] (grass) r.series won't compile with Sun C 5.5.
|
In-Reply-To |
<20060814203133.171D81005AF@lists.intevation.de>
|
References |
<20060814203133.171D81005AF@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-3.925 tagged_above=-999 required=3 tests=[AWL=1.075, BAYES_00=-5]
|
X-Spam-Level |
|
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=5003
> -------------------------------------------------------------------------
>
> Subject: r.series won't compile with Sun C 5.5.
>
> Platform: Solaris2.x/Sparc
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs 20060815
>
> When compiling GRASS with Sun C 5.5, file c_percentile.c in r.series fails
with the following errors:
>
> "c_percentile.c", line 29: void function cannot return value
> "c_percentile.c", line 34: void function cannot return value
> "c_percentile.c", line 39: void function cannot return value
>
> Each of these lines tries to return a value from a function returning
> void with the pretext that they are trying to return a void gotten
> from another function. Even if this works with some compilers, I fail
> to see the logic behind. If the return-statements from the failing
> lines are removed, everything compiles fine. I can see no logical
> reason not to.
Fixed in CVS.
--
Glynn Clements <glynn@gclements.plus.com>
|
|
Tue, Aug 15 2006
14:58:03
|
|
Status changed to resolved by mneteler
|
|