Re: warnings about signal() calls on HP
Guido van Rossum <[email protected]> Wed, 17 Jul 2002 15:55:07 -0400
| Newsgroups | gmane.comp.python.snake-farm.user |
|---|---|
| Message-ID | <[email protected]> |
> > warning: function declaration isn't a prototype > > > >These are all about totally vanilla calls to signal(), e.g. > > > > signal(SIGPIPE, SIG_IGN); > > > >Is there a way to shut the compiler up that doesn't either uglify the > >code or suppress other warnings? > > These aren't about the calls to signal, they're about > the definition of SIG_IGN and friends, which should look > like PyOS_sighandler_t, but probably doesn't on HP/UX. I understand that it's about SIG_IGN etc. Are you saying that we have our own prototype for signal()? Shouldn't the compiler's prototype for signal() be picked up from <signal.h>? What should I think of a compiler that issues a warning about a definition in its own header file? --Guido van Rossum (home page: http://www.python.org/~guido/)