forked from Mirror/frr
lib: ignore cli lexer in clang-analyze
Lexer code is generated by Flex and we don't care about false positives in it. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
988258b427
commit
1ec890a76b
|
@ -23,6 +23,9 @@
|
|||
*/
|
||||
|
||||
%{
|
||||
/* ignore flex generated code in static analyzer */
|
||||
#ifndef __clang_analyzer__
|
||||
|
||||
/* ignore harmless bugs in old versions of flex */
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||
|
@ -91,3 +94,5 @@ void cleanup_lexer (yyscan_t *scn)
|
|||
// yy_delete_buffer (buffer, *scn);
|
||||
yylex_destroy(*scn);
|
||||
}
|
||||
|
||||
#endif /* __clang_analyzer__ */
|
||||
|
|
Loading…
Reference in a new issue