From 0de9b5f9b9059b26ec2a29cbd3f5375703e48215 Mon Sep 17 00:00:00 2001 From: AlexandreSinger Date: Thu, 16 May 2024 16:24:34 -0400 Subject: [PATCH] [Warnings] Suppressed Bison Deprecation Warnings Suppressed the Bison deprecation warnings for SDCParse and BlifParse since the fix for the deprecation requires Bison 3.3, but the current minimum version of Bison is 3.0 Some development machines using VPR cannot be upgraded to Bison 3.3 easily, so for now the deprecation warnings are just being suppressed until all machines are on Bison 3.3 PR #2529 tracks this issue and contains the code to fix the deprecations. --- libs/EXTERNAL/libblifparse/CMakeLists.txt | 4 +++- libs/EXTERNAL/libsdcparse/CMakeLists.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/EXTERNAL/libblifparse/CMakeLists.txt b/libs/EXTERNAL/libblifparse/CMakeLists.txt index 714c54d775f..a128893fd51 100644 --- a/libs/EXTERNAL/libblifparse/CMakeLists.txt +++ b/libs/EXTERNAL/libblifparse/CMakeLists.txt @@ -27,7 +27,9 @@ file(GLOB_RECURSE PARSER_SOURCES src/blif*.y) #Make the flex and bison targets flex_target(BlifLexer ${LEXER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.cpp COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.hpp) -bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp) +# Suppress deprecation warnings. See PR #2529 +bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp + COMPILE_FLAGS -Wno-deprecated) add_flex_bison_dependency(BlifLexer BlifParser) #Suppress warnings in Flex/Bison generated files diff --git a/libs/EXTERNAL/libsdcparse/CMakeLists.txt b/libs/EXTERNAL/libsdcparse/CMakeLists.txt index 24a7b2973c8..5ca0e0d8158 100644 --- a/libs/EXTERNAL/libsdcparse/CMakeLists.txt +++ b/libs/EXTERNAL/libsdcparse/CMakeLists.txt @@ -27,7 +27,9 @@ file(GLOB_RECURSE PARSER_SOURCES src/sdc*.y) #Make the flex and bison targets flex_target(SdcLexer ${LEXER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_lexer.gen.cpp COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/sdc_lexer.gen.hpp) -bison_target(SdcParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_parser.gen.cpp) +# Suppress deprecation warnings. See PR #2529 +bison_target(SdcParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_parser.gen.cpp + COMPILE_FLAGS -Wno-deprecated) add_flex_bison_dependency(SdcLexer SdcParser)