Path: utzoo!mnetor!uunet!husc6!purdue!umd5!terminus.umd.edu!davidc From: davidc@terminus.umd.edu (David R. Conrad) Newsgroups: comp.lang.c Subject: Should this cause a diagnostic? Message-ID: <2261@umd5.umd.edu> Date: 5 Feb 88 18:51:52 GMT Sender: ris@umd5.umd.edu Reply-To: davidc@terminus.umd.edu (David R. Conrad) Organization: University of Maryland, College Park Lines: 37 Keywords: prototype I have a question relating to prototyping and parameter passing for those people who have access to the ANSI draft. Should the following program generate a diagnostic (warning perhaps) about inconsistent parameters? /*------------------------------------------------------------------------*/ #define LINT_ARGS #include unsigned int foo( unsigned goo ); unsigned int foo( goo ) unsigned int goo; { (void) printf( "%u\n", goo ); return( goo ); } main(){ unsigned char doo = 0; (void) foo( doo ); return( 0 ); } /*------------------------------------------------------------------------*/ If not, why not? Please reply to me directly, too much bandwidth on this newsgroup for me to keep up... Thanks, -drc ------------------------------------------------------------------------------- David R. Conrad The University of Maryland arpa: davidc@umd5.umd.edu (301) 454-2946 PC/IP Group bitnet: conradd@umdd.bitnet