Compilation Warnings for 'S' on a DECstation 5000
Dave Brillhart
dcb at dave.mis.semi.harris.com
Thu Jan 24 02:57:51 AEST 1991
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 at dave.mis.semi.harris.com
More information about the Comp.unix.ultrix
mailing list