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