httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: [PATCH] NT cleanup
Date Mon, 16 Jun 1997 23:38:00 GMT
On Mon, 16 Jun 1997, Ben Laurie wrote:
> As I've mentioned before, the problem is that, strictly, these functions are
> supposed to return values. Unfortunately, I can't think of a nice construction
> to handle it. The best I can come up with is:
> #define acquire_mutex(mutex_id)	(dummy=dummy,MULTI_OK)

Well I just casted the uses to (void), which seems reasonable enough to

BTW I did try using inline functions (wrapped in #ifdef __GNUC__) but
it still generates the warning.  Odd.

Oh yeah and the other C/C++ dig you got in earlier about:


The reason that compiled fine is that it's another gnuc extension.

Not that I'm advocating we use gnuc extensions (other than maybe inline,
which is syntactically simple to revert back to ANSI C, and some of
the pragmas that assist it in generating warnings for printf/scanf style



View raw message