🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Roland McGrath Tue, 14 Apr 1992 16:38
2.1 gives annoying warnings
#407
Author: Roland McGrath
Date: Tue, 14 Apr 1992 16:38
19 lines
807 bytes
I have the macro:

#define	__sigemptyset(set)	((*(set) = 0L), 0)

Code like:

{
  sigset_t set;
  __sigemptyset (&set);
}

elicits `warning: value computed is not used' from gcc 2.1 with -Wall.
This is annoying.  And, it seems inconsistent.  GCC does not complain the
same code with:

int __sigemptyset (sigset_t *);

instead of the macro.  The return value is computed and ignored in both
cases.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads