Skip to content

Commit 6da277c

Browse files
committed
Use -deprecated-since-N.NN warning options
For finer control of deprecation warnings.
1 parent ba046c3 commit 6da277c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Makefile

+13-7
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,25 @@ endif
5757
# deprecated-instance-without-locality:
5858
# warning introduced in 8.14
5959
# triggered by Menhir-generated files, to be solved upstream in Menhir
60+
# deprecated-since-8.19
61+
# deprecated-since-8.20
62+
# renamings performed in Coq's standard library;
63+
# using the new names would break compatibility with earlier Coq versions.
6064

6165
COQCOPTS ?= \
62-
-w -unused-pattern-matching-variable
66+
-w -unused-pattern-matching-variable \
67+
-w -deprecated-since-8.19 \
68+
-w -deprecated-since-8.20
6369

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

73+
# Flocq and Menhirlib run into other renaming issues.
74+
# These warnings can only be addressed upstream.
75+
76+
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
77+
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
78+
6779
ifneq ($(INSTALL_COQDEV),true)
6880
# Disable costly generation of .cmx files, which are not used locally
6981
COQCOPTS += -w -deprecated-native-compiler-option -native-compiler no
@@ -219,12 +231,6 @@ endif
219231

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

222-
# Turn off some warnings for Flocq and Menhirlib
223-
# These warnings can only be addressed upstream
224-
225-
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
226-
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
227-
228234
extraction: extraction/STAMP
229235

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

0 commit comments

Comments
 (0)