Skip to content

Commit cd0faad

Browse files
committed
Suppression warnings about deprecated directive
``` constexp.y:46.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated] %name-prefix="constexpYY" ^^^^^^^^^^^^^ [...]/src/constexp.y:46.1-13: warning: deprecated directive, use ‘%name-prefix’ [-Wdeprecated] %name-prefix="constexpYY" ^^^^^^^^^^^^^ ```
1 parent c627108 commit cd0faad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ set_source_files_properties(${GENERATED_SRC}/configoptions.cpp PROPERTIES GENERA
6363

6464
# ce_parse.h
6565
add_custom_command(
66-
COMMAND ${BISON_EXECUTABLE} -l -d -p ce_parsexpYY ${CMAKE_SOURCE_DIR}/src/constexp.y -o ce_parse.c
66+
COMMAND ${BISON_EXECUTABLE} -l -d -p ce_parsexpYY -Wno-deprecated ${CMAKE_SOURCE_DIR}/src/constexp.y -o ce_parse.c
6767
DEPENDS ${CMAKE_SOURCE_DIR}/src/constexp.y
6868
OUTPUT ${GENERATED_SRC}/ce_parse.h
6969
WORKING_DIRECTORY ${GENERATED_SRC}
@@ -119,7 +119,7 @@ FLEX_TARGET(xmlcode xmlcode.l ${GENERATED_SRC}/xmlcode.cpp
119119
FLEX_TARGET(sqlcode sqlcode.l ${GENERATED_SRC}/sqlcode.cpp COMPILE_FLAGS "${LEX_FLAGS}")
120120
FLEX_TARGET(configimpl configimpl.l ${GENERATED_SRC}/configimpl.cpp COMPILE_FLAGS "${LEX_FLAGS}")
121121

122-
BISON_TARGET(constexp constexp.y ${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "${YACC_FLAGS}")
122+
BISON_TARGET(constexp constexp.y ${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "-Wno-deprecated ${YACC_FLAGS}")
123123

124124
add_library(doxycfg STATIC
125125
${GENERATED_SRC}/lang_cfg.h

0 commit comments

Comments
 (0)