home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3222 next >
Encoding:
Text File  |  1993-01-21  |  1.3 KB  |  41 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
  2. From: jason@jarthur.claremont.edu (Jason Merrill)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: Prototype handling bug(?) in 2.3.3
  5. Date: 21 Jan 1993 18:06:39 -0500
  6. Organization: Minimal
  7. Lines: 28
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <JASON.93Jan21002234@it.claremont.edu>
  12.  
  13. When compiling ckufio.c from the C-Kermit 5A(188) distribution, I get this
  14. error:
  15.  
  16. ckufio.c:390: conflicting types for `getpwuid'
  17. ckufio.c:390: An argument type that has a default promotion
  18. ckufio.c:390: can't match an empty parameter name list declaration.
  19. /usr/include/pwd.h:27: previous declaration of `getpwuid'
  20.  
  21. A condensation of the file being compiled would be:
  22.  
  23. -----
  24. typedef unsigned short uid_t;
  25.  
  26. struct passwd* getpwuid();
  27. struct passwd* getpwuid(uid_t);
  28. -----
  29.  
  30. And indeed that fragment reproduces the bug (misfeature)?  I was under the
  31. impression that you could pass anything you darn well pleased through ().
  32. I suppose the error means that the compiler would have to convert the
  33. argument being passed to unsigned short before passing it, but this machine
  34. is little-endian, so passing an int straight through wouldn't hurt.
  35.  
  36. Perhaps this is proper behavior; what do you think?
  37.  
  38. --
  39. Jason Merrill                    jason@jarthur.claremont.edu
  40.  
  41.