Details Ticket 5279


Comment | Reply | Take | Open


Serial Number 5279
Subject implicit declaration of exit in gisinit.c
Area grass6
Queue grass
Requestors kyngchaos@kyngchaos.com
Owner none
Status resolved
Last User Contact Thu Nov 16 07:51:22 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Thu Nov 16 07:51:22 2006 (2 yr ago)
Created Wed Nov 15 23:16:27 2006 (2 yr ago)

Transaction History Ticket 5279


Wed, Nov 15 2006 23:16:27    Request created by guest  
Subject: implicit declaration of exit in gisinit.c

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 6.3.CVS.20061111

gisinit.c has a warning about:

gisinit.c:40: warning: incompatible implicit declaration of built-in function
‘exit’

while it is harmless in a normal build on OSX - it plows thru and succeeds with
compiling gisinit.c - 
while experimenting with an Xcode project I also get an error about EXIT_FAILURE
being undefined.  
Adding:

#include <stdlib.h>

to gisinit.c fixes the warning and the error.
Thu, Nov 16 2006 07:51:22    Status changed to resolved by mneteler  
Thu, Nov 16 2006 07:51:22    Mail sent by mneteler  
Fixed:

2006-11-13 06:01  brad
        * gisinit.c: - Added stdlib.h

I also fixed it for 6.2.x.

Markus
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