🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #408

Re: void * not handled in AIX C compiler ?

#408
From: Bill Webb
Date: Wed, 04 Oct 1989 00:00
21 lines
1564 bytes
> AIX C allows the use of void functions, and the (void *) typecast.
> Declaring a variable as void * does not work. The effect is the same
> as if the variable had never been defined. ...
>        ------------------------------------------------------------------
>        EDV Ges.m.b.H Vienna              Johann Schweigl    
>        Hofmuehlgasse 3 - 5               USENET: johnny@edvvie.at
>        A-1060 Vienna, Austria      Tel: (0043) (222) 59907 257 (8-19 CET)

I'd say that you're right. The AOS 4.3 RT hc compilers all compiled the 
code without problem (except for warnings about not using variable foo).
Pcc on the other hand gave exactly the same complaints as the AIX compiler.

	foo = (void *) &bar;

If the AIX compiler claims to be ANSI (I'm not sure if it does), then
I'd suggest that you do report it as a bug and see if you can get it fixed.

----------------------------------------------------------------
The above views are my own, not necessarily those of my employer.
Bill Webb (IBM AWD Palo Alto), (415) 855-4457).
UUCP: ...!uunet!ibmsupt!webb
Technical Details
Message-ID: <2398@ibmpa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!ibmpa!bass.tcspa.ibm.com!webb
References: <159@eliza.edvvie.at>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!ibmpa!bass.tcspa.ibm.com!webb
From: webb@bass.tcspa.ibm.com (Bill Webb)
Newsgroups: comp.sys.ibm.pc.rt,comp.unix.aix,comp.lang.c
Subject: Re: void * not handled in AIX C compiler ?
Keywords: AIX C ANSI
Message-ID: <2398@ibmpa.UUCP>
Date: 4 Oct 89 00:00:30 GMT
References: <159@eliza.edvvie.at>
Sender: news@ibmpa.UUCP
Organization: IBM AWD Paloalto
Lines: 21