home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / gcc / bug / 2240 < prev    next >
Encoding:
Text File  |  1992-09-02  |  801 b   |  30 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!cvedc.prime.com!sm
  3. From: sm@cvedc.prime.com
  4. Subject: bug in old function definition/new function prototype
  5. Message-ID: <9209021516.AA20872@shango.cvedc.prime.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 2 Sep 1992 01:16:32 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 17
  12.  
  13. The following is correct code (according to 2nd edition K&R,pp. 202 & 197):
  14.  
  15. void foo(unsigned int, unsigned int, unsigned int, unsigned long);
  16.  
  17. void foo(uchar_error, ushort_error, uint_okay, ulong_okay)
  18. unsigned char    uchar_error;
  19. unsigned short    ushort_error;
  20. unsigned int    uint_okay;
  21. unsigned long    ulong_okay;
  22. {
  23.     return;
  24. }
  25.  
  26. However, gcc generates an error message for "uchar_error" and "ushort_error".
  27.  
  28. Scott MacHaffie
  29.  
  30.