Xref: utzoo comp.sys.ibm.pc.rt:1017 comp.unix.aix:101 comp.lang.c:22457 Path: 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 > 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