🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Morgan Stair Tue, 17 Nov 1992 21:31
gcc-2.3.1 bug - ... incompatible pointer type
#1416
Author: 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                       *
***************************************
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