mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
LexerParser: Suppress clang -Wunused-but-set-variable warnings
This commit is contained in:
@@ -45,6 +45,11 @@ static void cmDependsJava_yyerror(yyscan_t yyscanner, const char* message);
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
# pragma GCC diagnostic ignored "-Wfree-nonheap-object"
|
||||
#endif
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
# if __has_warning("-Wunused-but-set-variable")
|
||||
# pragma clang diagnostic ignored "-Wunused-but-set-variable"
|
||||
# endif
|
||||
#endif
|
||||
%}
|
||||
|
||||
/* Generate a reentrant parser object. */
|
||||
|
||||
Reference in New Issue
Block a user