Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by sm
Wed, 02 Sep 1992 01:16
bug in old function definition/new function prototype
Author: sm
Date: Wed, 02 Sep 1992 01:16
Date: Wed, 02 Sep 1992 01:16
16 lines
828 bytes
828 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads