mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
Source/LexerParser: Suppress "Use of zero-allocated memory" warning
clang scan-build warns about YY_CURRENT_BUFFER_LVALUE being zero- allocated, but the whole point of the macro is to know that it's not zero. Wrap the entire file in an "#ifndef __clang_analyzer__" block in order to suppress the warning.
This commit is contained in:
@@ -860,6 +860,8 @@ Modify cmDependsJavaLexer.cxx:
|
||||
|
||||
/* IWYU pragma: no_forward_declare yyguts_t */
|
||||
|
||||
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "cmDependsJavaParserHelper.h"
|
||||
@@ -2811,3 +2813,7 @@ void yyfree (void * ptr , yyscan_t yyscanner)
|
||||
}
|
||||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#endif /* __clang_analyzer__ */
|
||||
|
||||
Reference in New Issue
Block a user