File: SET-INHIBIT-WARNINGS.html

package info (click to toggle)
acl2 3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36,712 kB
  • ctags: 38,396
  • sloc: lisp: 464,023; makefile: 5,470; sh: 86; csh: 47; cpp: 25; ansic: 22
file content (48 lines) | stat: -rw-r--r-- 1,875 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head><title>SET-INHIBIT-WARNINGS.html  --  ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>SET-INHIBIT-WARNINGS</h2>control warnings
<pre>Major Section:  <a href="EVENTS.html">EVENTS</a>
</pre><p>


<pre>
Examples:
(set-inhibit-warnings "theory" "use")
</pre>

Note: This is an event!  It does not print the usual event summary
but nevertheless changes the ACL2 logical <a href="WORLD.html">world</a> and is so
recorded.  Moreover, its effect is to set the <code><a href="ACL2-DEFAULTS-TABLE.html">acl2-defaults-table</a></code>, and
hence its effect is <code><a href="LOCAL.html">local</a></code> to the book or <code><a href="ENCAPSULATE.html">encapsulate</a></code> form
containing it; see <a href="ACL2-DEFAULTS-TABLE.html">acl2-defaults-table</a>.
<p>

<pre>
General Form:
(set-inhibit-warnings string1 string2 ...)
</pre>

where each string is considered without regard to case.  This macro
is equivalent to <code>(table acl2-defaults-table :inhibit-warnings lst)</code>,
where <code>lst</code> is the list of strings supplied.  This macro is an event
(see <a href="TABLE.html">table</a>), but no output results from a
<code>set-inhibit-warnings</code> event.<p>

The effect of this event is to suppress any warning whose label is a
member of this list (where again, case is ignored).  For example,
the warning

<pre>
  ACL2 Warning [Use] in ( THM ...):  It is unusual to :USE ....
</pre>

will not be printed if <code>"use"</code> (or <code>"USE"</code>, etc.) is a member
of the given list of strings.<p>

Of course, if warnings are inhibited overall --
see <a href="SET-INHIBIT-OUTPUT-LST.html">set-inhibit-output-lst</a> -- then the value of
<code>:inhibit-warnings</code> is entirely irrelevant.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>