1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7 <title>NN_UNUSED_VAR</title> 8 </head> 9 <body> 10 <h1>NN_UNUSED_VAR Macro</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition">#include <nn/config.h> 14 15#define NN_UNUSED_VAR(var) ((void)&var);</pre> 16 </div> 17 <h2>Parameters</h2> 18 <div class="section"> 19 <table class="arguments"> 20 <thead> 21 <tr> 22 <td width="15" /> 23 <th>Name</th> 24 <td>Description</td> 25 </tr> 26 </thead> 27 <tr> 28 <td>in</td> 29 <th><CODE>var</CODE></th> 30 <td>The target variable.</td> 31 </tr> </table> 32 </div> 33 <h2>Description</h2> 34 <div class="section"> 35 <p>Declares that a variable is not used.</p><p>Variables declared in code but not accessed do not result in unused variable compiler warnings by declaring them as unused.</p><p>Such variables are primarily used as temporary function parameters.</p><!-- write here --></div> 36 <h2>Revision History</h2> 37 <div class="section"> 38 <dl class="history"> 39 <dt>2011/12/16</dt> 40 <dd>Initial version.<br /> 41 </dd> 42 </dl> 43 </div> 44 <hr><p>CONFIDENTIAL</p></body> 45</html> 46