<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Howard,</div><div><br></div>Pragmas cannot be used to suppress the static analyzer warnings. Most likely you've silenced a regular compiler warning within Xcode.<div><br></div><div>Please, refer to <a href="http://clang-analyzer.llvm.org/faq.html">http://clang-analyzer.llvm.org/faq.html</a> for more information about how various analyzer warning could be silenced.</div><div><br></div><div>Cheers,</div><div>Anna.<br><div><div>On Jul 19, 2013, at 2:30 AM, 凌欢 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="line-height: 1.7; font-size: 14px; font-family: arial;"><div>hi, all:</div><div>My scan-build verison is checker-275. I can add some pragma lines such as the following lines to source code: </div><div><em>#pragma clang diagnostic ignored "-Wdangling-else"<br>#pragma clang diagnostic ignored "-Wparentheses-equality"</em></div><div><div><em> #pragma clang diagnostic ignored "-Wunused-variable"</em></div><div>to avoid the Xcode Gui Analyze the bugs. It seems that it worked for Xcode Gui Analyse ,for exmale ,to disble the<div><strong>Dead assignment<span class="Apple-converted-space"> </span></strong>bug type scan ,we can add:</div><div><em> #pragma clang diagnostic ignored "-Wunused-variable"</em></div><div>to specific source code. The problem is , the setting is not work for scan-build command line tool.</div><div>Can anyone give me tips? Thanks all.</div><div>BRs</div></div></div><div><div>Howard Ling</div><div>*****************************************************</div><div> </div><div>E-mail: <span class="Apple-converted-space"> </span><a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div><div> </div><div>*****************************************************</div></div></div></div></blockquote></div><br></div></body></html>