<li><ahref="#custom_assert">How do I tell the analyzer that I do not want the bug being
reported here since my custom error handler will safely end the execution before
the bug is reached?</a></li>
<li><ahref="#null_pointer">The analyzer reports a null dereference, but I know that the
pointer is never null. How can I tell the analyzer that a pointer can never be
null?</a></li>
<li><ahref="#use_assert">The analyzer assumes that a loop body is never entered. How can I tell it that the loop body will be entered at least once?</a></li>
<li><ahref="#suppress_issue">How can I suppress a specific analyzer warning?</a></li>
</ol>
<h4id="custom_assert"class="faq">Q: How do I tell the analyzer that I do not want the bug being
<p>You can tell the analyzer that this path is unreachable by teaching it about your <ahref ="annotations.html#custom_assertions">custom assertion handlers</a>. For example, you can modify the code segment as following.</p>
<p>The reason the analyzer often thinks that a pointer can be null is because the preceding code checked compared it against null. So if you are absolutely sure that it cannot be null, remove the preceding check and, preferably, add an assertion as well. For example, in the code segment above, it will be sufficient to remove the <tt>if (!b)</tt> check. </p>
<h4id="use_assert"class="faq">Q: The analyzer assumes that a loop body is never entered. How can I tell it that the loop body will be entered at least once?</h4>