title: How can I get rid of an "unused variable" warning in Xcode?
body: <p>I understand exactly why unused variable warnings occur. I don't want to suppress them in general, because they are incredibly useful in most cases. However, consider the following (contrived) code.</p>
  
  <pre><code>NSError *error = nil;
  BOOL saved = [moc save:&amp;error];
  NSAssert1(saved, @"Dude!!1! %@!!!", error);
  </code></pre>
  
  <p>Xcode reports that <code>saved</code> is an unused variable, when of course it isn't. I suspect this is because <code>NSAssert1</code> is a macro. The <code>NS_BLOCK_ASSERTIONS</code> macro is <em>not</em> defined, so Objective C assertions are definitely enabled.</p>
  
  <p>While it doesn't hurt anything, I find it untidy and annoying, and I want to suppress it, but I'm not sure how to do so. Assigning the variable to itself gets rid of the compiler warning, but I'd rather do it the "right" way if such a thing exists.</p>