🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1416

gcc-2.3.1 bug - ... incompatible pointer type

#1416
From: Morgan Stair
Date: Tue, 17 Nov 1992 21:31
27 lines
1243 bytes
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                       *
***************************************
Technical Details
Message-ID: <MORGAN.92Nov17163107@dl5000.bc.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!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