dcb@dave.mis.semi.harris.com (Dave Brillhart) (01/23/91)
I am trying to compile 'S' on a DECstation 5000. I haven't received my loaner F77 compiler yet, so I am just trying to compile the C-only subset of S. AT&T recommends doing this to check out a machine for compatibility. I am using the standard cc compiler that comes with ULTRIX V4.1. There are a few warnings I get using the built-in 'signal' function. Any help eliminating these would be greatly appreciated. Here are the specifics: In the standard include file (/usr/sys/h/signal.h) the following is defined: #define SIG_IGN ((void (*)())( 1)) In the source module that generates a compile warning, the following code exists: osig = signal(SIGINT, SIG_IGN); Here is the compilation warning that is produced: cc -c -I$I -O2 -Olimit 2000 Spost.c ccom: Warning: Spost.c, line 76: illegal pointer combination osig = signal( 2 , ((void (*)())( 1))); ------------------------------------------------^ In the man pages for signal, the following syntax is specified: #include <signal.h> (*signal(sig, func))() void (*func)(); Any ideas or suggestions (should I just ignor these messages)? -- Dave Brillhart Harris Semiconductor (407) 729-5430 dcb@dave.mis.semi.harris.com