Skip to content

Commit

Permalink
Use -deprecated-since-N.NN warning options
Browse files Browse the repository at this point in the history
For finer control of deprecation warnings.
  • Loading branch information
xavierleroy committed Nov 27, 2024
1 parent ba046c3 commit 6da277c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,25 @@ endif
# deprecated-instance-without-locality:
# warning introduced in 8.14
# triggered by Menhir-generated files, to be solved upstream in Menhir
# deprecated-since-8.19
# deprecated-since-8.20
# renamings performed in Coq's standard library;
# using the new names would break compatibility with earlier Coq versions.

COQCOPTS ?= \
-w -unused-pattern-matching-variable
-w -unused-pattern-matching-variable \
-w -deprecated-since-8.19 \
-w -deprecated-since-8.20

cparser/Parser.vo: COQCOPTS += -w -deprecated-instance-without-locality
MenhirLib/Interpreter.vo: COQCOPTS += -w -undeclared-scope

# Flocq and Menhirlib run into other renaming issues.
# These warnings can only be addressed upstream.

flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition

ifneq ($(INSTALL_COQDEV),true)
# Disable costly generation of .cmx files, which are not used locally
COQCOPTS += -w -deprecated-native-compiler-option -native-compiler no
Expand Down Expand Up @@ -219,12 +231,6 @@ endif

proof: $(FILES:.v=.vo)

# Turn off some warnings for Flocq and Menhirlib
# These warnings can only be addressed upstream

flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition

extraction: extraction/STAMP

extraction/STAMP: $(FILES:.v=.vo) extraction/extraction.v $(ARCH)/extractionMachdep.v
Expand Down

0 comments on commit 6da277c

Please sign in to comment.