Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Command line flags for warnings

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Command line flags for warnings


Chronological Thread 
  • From: Théo Zimmermann <theo.zimmi AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Command line flags for warnings
  • Date: Sun, 05 Nov 2017 11:16:04 +0000
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=theo.zimmi AT gmail.com; spf=Pass smtp.mailfrom=theo.zimmi AT gmail.com; spf=None smtp.helo=postmaster AT mail-vk0-f41.google.com
  • Ironport-phdr: 9a23:5K19oBQoMSJJ+sn5O4uMgvwMRdpsv+yvbD5Q0YIujvd0So/mwa67YR2N2/xhgRfzUJnB7Loc0qyN7PCmBDRIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnZBUin4YAFyP6H+HpPYp8WxzeG7vZPJMCtSgz/oXbPzKyKErADUu9MTiI1kYvItyhbO5GlJfuFX7WxtLFOX2R3745Hjr9ZY7y1Mtqd5pIZ7WqLgcvFgQA==

Hi,

Section 6.9.3 (https://coq.inria.fr/distrib/current/refman/vernacular.html#SetWarnings) also says "Adding - in front of a warning or category disables it, adding + makes it an error. It is possible to use the special categories all and default, the latter containing the warnings enabled by default."

The warnings names and categories are displayed whenever you see such a warning (I ignore if there is a command to display all warning names or categories).
E.g. if you type "Variable A : Prop." in an empty buffer, you will see:
"A is declared as a local axiom [local-declaration,scope]"
The warning name is local-declaration and the category is scope.

Thus if you relaunch CoqIDE (or coqtop through Proof-General) with option -w "-local-declaration", you won't see any warning for the same buffer.
And if you use option -w "+local-declaration", you will see an error instead.

Théo

Le sam. 4 nov. 2017 à 23:27, Erkki Luuk <erkkil AT gmail.com> a écrit :
Hi

Where do I find the command line flags for warning names and categories? The manual just says:

-w (all|none|w1,…,wn)

Configure the display of warnings. This option expects all, none or a comma-separated list of warning names or categories (see Section 6.9.3).


Erkki



Archive powered by MHonArc 2.6.18.

Top of Page