Subject: Behaviour of catclose()
To: None <netbsd-users@NetBSD.ORG>
From: Jesus M. Gonzalez <>
List: netbsd-users
Date: 11/18/1994 10:21:08
	While compiling tclX7.3b, I found the following error:

cd src;       make - "CC=cc" "CFLAGS=-O" all
cc   -O -I/disks/moriles.g/vol/netbsd10-i386/test/tcl-tk/tclX7.3b/src  -I/disks/
moriles.g/vol/netbsd10-i386/test/tcl-tk/tclX7.3b/src -I/disks/moriles.g/vol/netb
sd10-i386/test/tcl-tk/tclX7.3b/../tcl7.3 -c tclXmsgcat.c
tclXmsgcat.c: In function `Tcl_CatcloseCmd':
tclXmsgcat.c:271: void value not ignored as it ought to be

        It seems that NetBSD's catclose returns a void value, which
gcc doesn't like as a value returned from an expression... The offending
code is:

    if ((catclose (*catDescPtr) < 0)  &&  fail)
        return CatOpFailed (interp, "close of message catalog failed");

	I've used an #if defined (__NetBSD__) around it, calling
catclose without bother about errors... (supposing there will
be none).

	Before sending the patch to tclX people, I'd like to
know if this is the expected behaviour of both gcc and catclose.
And if somedy knows if this is only NetBSD's way, or is more



Jesus M. Gonzalez Barahona    | Universidad Carlos III (Madrid, Spain)
tel: +34 1 624 94 58          | e-mail:
fax: +34 1 624 94 30          |
(Sometimes our headers are not o.k., please reply to any of this addresses)
.From within Universidad Carlos III, you can better use