home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!cis.ohio-state.edu!cvedc.prime.com!sm
- From: sm@cvedc.prime.com
- Subject: bug in old function definition/new function prototype
- Message-ID: <9209021516.AA20872@shango.cvedc.prime.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Wed, 2 Sep 1992 01:16:32 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 17
-
- The following is correct code (according to 2nd edition K&R,pp. 202 & 197):
-
- void foo(unsigned int, unsigned int, unsigned int, unsigned long);
-
- void foo(uchar_error, ushort_error, uint_okay, ulong_okay)
- unsigned char uchar_error;
- unsigned short ushort_error;
- unsigned int uint_okay;
- unsigned long ulong_okay;
- {
- return;
- }
-
- However, gcc generates an error message for "uchar_error" and "ushort_error".
-
- Scott MacHaffie
-
-