Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
3ef134ff
Commit
3ef134ff
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Type warnings are inhibited when brevity = 3.
parent
96589680
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/ir1tran.lisp
+7
-5
7 additions, 5 deletions
compiler/ir1tran.lisp
with
7 additions
and
5 deletions
compiler/ir1tran.lisp
+
7
−
5
View file @
3ef134ff
...
...
@@ -757,9 +757,10 @@
type
(
type-intersection
old-type
type
))))
(
cond
((
eq
int
*empty-type*
)
(
compiler-warning
"Conflicting type declarations ~S and ~S for ~S."
(
type-specifier
old-type
)
(
type-specifier
type
)
var-name
))
(
unless
(
policy
nil
(
=
brevity
3
))
(
compiler-warning
"Conflicting type declarations ~S and ~S for ~S."
(
type-specifier
old-type
)
(
type-specifier
type
)
var-name
)))
(
bound-var
(
setf
(
leaf-type
bound-var
)
int
))
(
t
(
res
(
cons
var
int
))))))
...
...
@@ -2275,7 +2276,7 @@
(
proclaim
'
(
function
process-type-proclamation
(
t
list
)
void
))
(
defun
process-type-proclamation
(
spec
names
)
(
let
((
type
(
single-value-type
(
specifier-type
spec
))))
(
when
(
policy
nil
(
>
=
safety
brevity
))
(
unless
(
policy
nil
(
=
brevity
3
))
(
dolist
(
name
names
)
(
let
((
old-type
(
info
variable
type
name
)))
(
unless
(
or
(
function-type-p
type
)
...
...
@@ -2558,7 +2559,8 @@
(
if
(
null
(
find-uses
cont
))
(
let*
((
old-type
(
continuation-asserted-type
cont
))
(
int
(
values-type-intersection
old-type
ctype
)))
(
when
(
eq
int
*empty-type*
)
(
when
(
and
(
eq
int
*empty-type*
)
(
not
(
policy
nil
(
=
brevity
3
))))
(
compiler-warning
"Type ~S in THE declaration conflicts with previous type ~S."
(
type-specifier
ctype
)
(
type-specifier
old-type
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment