why c local variable need translated to void?
<p>recently I'm studying a project in github,and I found this.why there is a "(void)n" in the end?  </p>

<pre><code>void CurrentThread::cacheTid()
{
  if (t_cachedTid == 0)
  {
    t_cachedTid = detail::gettid();
    int n = snprintf(t_tidString, sizeof t_tidString, "%5d ", t_cachedTid);
    assert(n == 6); (void) n;
  }
}
</code></pre>
