Re: CVS commit: src/sys/sys

2013-10-25 Thread Jukka Ruohonen
On Fri, Oct 25, 2013 at 08:51:55AM +, Alan Barrett wrote:
 Module Name:  src
 Committed By: apb
 Date: Fri Oct 25 08:51:55 UTC 2013
 
 Modified Files:
   src/sys/sys: cdefs.h
 
 Log Message:
 Add __diagused and __debugused.  These are for marking variables that
 are used only in diagnotic or debug code, but unused when NDEBUG is
 defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.

I tried to collect some of these to attribute(3), which might be worth
updating (or not).

- Jukka.


Re: CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett

On Fri, 25 Oct 2013, Jukka Ruohonen wrote:

src/sys/sys: cdefs.h

Log Message:
Add __diagused and __debugused.  These are for marking variables that
are used only in diagnotic or debug code, but unused when NDEBUG is
defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.


I tried to collect some of these to attribute(3), which might be worth
updating (or not).


Thank you!  I didn't know about attribute(3).

--apb (Alan Barrett)