Skip to content

Commit 7cac414

Browse files
[libblifparse] Suppressed Deprecation Warnings in the Parser
Suppressed the deprecation warnings in the parser since the fix for the deprecation was not introduced until Bison 3.3; and we may still want to support earlier versions of Bison. In the future we should raise the minimum version of Bison from 3.0 to 3.3 for this project and fix the deprecation.
1 parent 44e7f02 commit 7cac414

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/EXTERNAL/libblifparse/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ file(GLOB_RECURSE PARSER_SOURCES src/blif*.y)
2727
#Make the flex and bison targets
2828
flex_target(BlifLexer ${LEXER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.cpp
2929
COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.hpp)
30-
bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp)
30+
# Note: Suppressing deprecation warnings
31+
bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp
32+
COMPILE_FLAGS -Wno-deprecated)
3133
add_flex_bison_dependency(BlifLexer BlifParser)
3234

3335
#Suppress warnings in Flex/Bison generated files

0 commit comments

Comments
 (0)