home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!dl5000.bc.edu!morgan
- From: morgan@dl5000.bc.edu (Morgan Stair)
- Subject: gcc-2.3.1 bug - ... incompatible pointer type
- Message-ID: <MORGAN.92Nov17163107@dl5000.bc.edu>
- Sender: gnulists@ai.mit.edu
- Organization: Institute for Space Research, Boston College
- Distribution: gnu
- Date: Tue, 17 Nov 1992 21:31:07 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 28
-
- This code generate the following compiler error in gcc-2.3.1 on my sun
- sparc 1+ running SunOS 4.1.1:
-
- gcc -Wunused t.c -o t
- t.c: In function `main':
- t.c:11: warning: passing arg 1 of `func' from incompatible pointer type
-
- --------------------
-
- /* modified from X11/Intrinsic.h XtCallbackProc typedef */
- typedef void (*mytype)(
- double *,
- char *,
- char *
- );
- void func (mytype);
- mytype main (double *a, char *b, char *c)
- {
- func ((mytype)main);
- func (main);
- }
- --
- ***************************************
- * Morgan Stair <Morgan@DL5000.BC.EDU> *
- * BC / Institute for Space Research *
- * (617)552-8783 *
- ***************************************
-
-