Skip to content

Commit

Permalink
Revert "Bison build rules: permit use of deprecated commands"
Browse files Browse the repository at this point in the history
This reverts commit 27ccfb7.
  • Loading branch information
tautschnig committed Jan 10, 2024
1 parent f534ce3 commit 9b220d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ macro(generic_bison name)
endif()

if(${BISON_VERSION} VERSION_GREATER "2.3")
set(bison_warnings_as_errors "-Werror -Wno-deprecated")
set(bison_warnings_as_errors "-Werror")
endif()
bison_target(
parser
Expand Down
8 changes: 4 additions & 4 deletions src/common
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ else ifeq ($(filter-out FreeBSD OpenBSD,$(BUILD_ENV_)),)
ifeq ($(origin CXX),default)
CXX = clang++
endif
YFLAGS ?= -v -Werror -Wno-deprecated
YFLAGS ?= -v -Werror
else
LINKLIB = ar rcT $@ $^
LINKBIN = $(CXX) $(LINKFLAGS) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LIBS)
Expand All @@ -90,7 +90,7 @@ else
CXX = g++
#CXX = icpc
endif
YFLAGS ?= -v -Werror -Wno-deprecated
YFLAGS ?= -v -Werror
endif
ifeq ($(origin YACC),default)
YACC = bison
Expand Down Expand Up @@ -127,7 +127,7 @@ endif
ifeq ($(origin YACC),default)
YACC = bison -y -Wno-error=yacc
endif
YFLAGS ?= -v -Werror -Wno-deprecated
YFLAGS ?= -v -Werror
ifeq ($(origin LEX),default)
LEX = flex
endif
Expand Down Expand Up @@ -155,7 +155,7 @@ endif
ifeq ($(origin YACC),default)
YACC = win_bison -y -Wno-error=yacc
endif
YFLAGS ?= -v -Werror -Wno-deprecated
YFLAGS ?= -v -Werror
ifeq ($(origin LEX),default)
LEX = win_flex
endif
Expand Down

0 comments on commit 9b220d6

Please sign in to comment.