How to filter some bugs from scan-build?

hi, all:
My scan-build verison is checker-275. I can add some pragma lines such as the following lines to source code:
#pragma clang diagnostic ignored “-Wdangling-else”
#pragma clang diagnostic ignored “-Wparentheses-equality”

#pragma clang diagnostic ignored “-Wunused-variable”
to avoid the Xcode Gui Analyze the bugs. It seems that it worked for Xcode Gui Analyse ,for exmale ,to disble the
Dead assignment bug type scan ,we can add:
#pragma clang diagnostic ignored “-Wunused-variable”
to specific source code. The problem is , the setting is not work for scan-build command line tool.
Can anyone give me tips? Thanks all.
BRs

Howard Ling

Howard,

Pragmas cannot be used to suppress the static analyzer warnings. Most likely you’ve silenced a regular compiler warning within Xcode.

Please, refer to http://clang-analyzer.llvm.org/faq.html for more information about how various analyzer warning could be silenced.

Cheers,
Anna.