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:
Quentin Young 2018-04-11 13:33:12 -04:00
parent 988258b427
commit 1ec890a76b

View file

@ -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__ */