[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: CXX-DEV: RE: cxx-dev: How Can I solve WARNING in compilation?
From: "Veygel, Mario" <mario.veygel () hp ! com>
Date: 2008-04-24 10:14:50
Message-ID: 1D965D8892DB34459EC3EF1E98F763580D20FFDD7F () G1W0479 ! americas ! hpqcorp ! net
[Download RAW message or body]
> "chsvr.c", line 107: warning #2167-D: argument of type "int (*)()" is
> incompatible with parameter of type "void (*)(int)"
> if (signal(SIGALRM, SigCatcher) == SIG_ERR)
Your definition of SigCatcher() is wrong.
> $ cat chsvr.c
> ~
> int SigCatcher();
>
> SigCatcher(int signo)
> {
This is inconsistent in itself. The following shoud work:
void SigCatcher(int);
void SigCatcher(int signo)
{
Mario
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic