Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!uwm.edu!linac!att!ucbvax!dalvm41b.vnet.ibm.com!freese From: freese@dalvm41b.vnet.ibm.com ("Bradley T. Freese") Newsgroups: comp.unix.aix Subject: No-prototype warning wanted from xlc Message-ID: <9105142215.AA18299@ucbvax.Berkeley.EDU> Date: 14 May 91 21:49:45 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 18 ng@cfd.di.nrc.ca (Kai Ng) writes: > > Hi, > > I wonder if one can instruct the xlc compiler to issue a warning message > whenever a function is used but not prototyped. Other ANSI C compilers > I've used before generate such warning unless explicitly suppressed. > However xlc seems happy with that. > > Have I overlooked any option on the man page? No, there is no way to do this. This function was not included in the design document for the compiler. The assumption was that most people would be migrating K&R code and did not want to deal with the error messages. You might want to contact your local IBM representative and request a "design change." Until then, I recommend using 'lint' to check your code.