Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!rex!uflorida!mlb.semi.harris.com!dave.mis.semi.harris.com!dcb From: dcb@dave.mis.semi.harris.com (Dave Brillhart) Newsgroups: comp.unix.ultrix Subject: Compilation Warnings for 'S' on a DECstation 5000 Message-ID: <1991Jan23.155751.10563@mlb.semi.harris.com> Date: 23 Jan 91 15:57:51 GMT Sender: news@mlb.semi.harris.com Reply-To: dcb@dave.mis.semi.harris.com (Dave Brillhart) Organization: Harris Semiconductor, Melbourne, FL Lines: 34 Nntp-Posting-Host: dave.mis.semi.harris.com 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(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