[GRASS-dev] [grass-code I][399] Void functions returning values in lib/raster/com_proto.c

code I item #399, was opened at 2007-05-15 16:58
Status: Open
Priority: 3
Submitted By: Harri Kiiskinen (harrikoo)
Assigned to: Nobody (None)
Summary: Void functions returning values in lib/raster/com_proto.c
Issue type: library bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: build
Operating system: None
Operating system version: Solaris 2.10 / SunOS 5.10
GRASS CVS checkout date, if applies (YYMMDD): 070514

Initial Comment:
The Sun c compiler gives the following error:

cc -I/home/fysop/92/harkiisk/src/grass6/dist.sparc-sun-solaris2.10/include -fast -xarch=native64 -I/home/fysop/92/harkiisk/include -KPIC -DPACKAGE=\"grasslibs"\ -I../driver -DPACKAGE=\"grasslibs"\ -DPACKAGE=\"grasslibs"\ -I/home/fysop/92/harkiisk/src/grass6/dist.sparc-sun-solaris2.10/include \
                -o OBJ.sparc-sun-solaris2.10/com_proto.o -c com_proto.c
"com_proto.c", line 512: void function cannot return value
"com_proto.c", line 524: void function cannot return value
cc: acomp failed for com_proto.c
make: *** [OBJ.sparc-sun-solaris2.10/com_proto.o] Error 2

Which probably is quite right - void functions should not return values.

Harri K.

----------------------------------------------------------------------

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=399&group_id=21