home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
- From: jason@jarthur.claremont.edu (Jason Merrill)
- Newsgroups: gnu.gcc.bug
- Subject: Prototype handling bug(?) in 2.3.3
- Date: 21 Jan 1993 18:06:39 -0500
- Organization: Minimal
- Lines: 28
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-gcc@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <JASON.93Jan21002234@it.claremont.edu>
-
- When compiling ckufio.c from the C-Kermit 5A(188) distribution, I get this
- error:
-
- ckufio.c:390: conflicting types for `getpwuid'
- ckufio.c:390: An argument type that has a default promotion
- ckufio.c:390: can't match an empty parameter name list declaration.
- /usr/include/pwd.h:27: previous declaration of `getpwuid'
-
- A condensation of the file being compiled would be:
-
- -----
- typedef unsigned short uid_t;
-
- struct passwd* getpwuid();
- struct passwd* getpwuid(uid_t);
- -----
-
- And indeed that fragment reproduces the bug (misfeature)? I was under the
- impression that you could pass anything you darn well pleased through ().
- I suppose the error means that the compiler would have to convert the
- argument being passed to unsigned short before passing it, but this machine
- is little-endian, so passing an int straight through wouldn't hurt.
-
- Perhaps this is proper behavior; what do you think?
-
- --
- Jason Merrill jason@jarthur.claremont.edu
-
-