[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
return value w.r.t. RETSIGTYPE
From: |
Werner LEMBERG |
Subject: |
return value w.r.t. RETSIGTYPE |
Date: |
Thu, 08 Apr 2004 19:02:01 +0200 (CEST) |
The standard definition of a signal handler is
RETSIGTYPE
handler()
{
...
}
according to autoconf.info. Now assume that AC_TYPE_SIGNAL defines
RETSIGTYPE as int. Picky compilers then give a warning `control
reaches end of non-void function'. I see no elegant solution to
suppress the message. How do you expect to solve this?
What about defining RETSIGTYPE_RETURN, to be either void or, say, `1'?
RETSIGTYPE
handler()
{
...
return RETSIGTYPE_RETURN;
}
Werner
PS: Please don't say `just ignore the warning'. Even gcc is going
more and more picky...
- return value w.r.t. RETSIGTYPE,
Werner LEMBERG <=