🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #407

2.1 gives annoying warnings

#407
From: 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.
Technical Details
Message-ID: <9204150038.AA02186@churchy.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!roland

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!roland
From: roland@gnu.ai.mit.edu (Roland McGrath)
Subject: 2.1 gives annoying warnings
Message-ID: <9204150038.AA02186@churchy.gnu.ai.mit.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 14 Apr 1992 16:38:46 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 20