Details Ticket 5003


Comment | Reply | Take | Open


Serial Number 5003
Subject r.series won't compile with Sun C 5.5.
Area grass6
Queue grass
Requestors harri.kiiskinen@utu.fi
Owner none
Status resolved
Last User Contact Tue Aug 15 05:09:03 2006 (2 yr ago)
Current Priority 70
Final Priority 70
Due No date assigned
Last Action Tue Aug 15 14:58:03 2006 (2 yr ago)
Created Mon Aug 14 22:31:33 2006 (2 yr ago)

Transaction History Ticket 5003


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  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request